فهرست منبع

maintenance!: switch to new probatio validation

HA 2026.9 switched from voluptuous to probatio, due to the former no
longer being maintained.

Use the new package rather than relying on HA to redirect.

Requires HA 2026.9
Jason Rumney 1 روز پیش
والد
کامیت
c908bb324b

+ 1 - 1
custom_components/tuya_local/config_flow.py

@@ -4,7 +4,7 @@ from collections import OrderedDict
 from typing import Any
 
 import tinytuya
-import voluptuous as vol
+import probatio as vol
 from homeassistant.config_entries import (
     CONN_CLASS_LOCAL_PUSH,
     ConfigEntry,

+ 1 - 1
custom_components/tuya_local/remote.py

@@ -12,7 +12,7 @@ from datetime import timedelta
 from itertools import product
 from typing import Any
 
-import voluptuous as vol
+import probatio as vol
 from homeassistant.components import persistent_notification
 from homeassistant.components.remote import (
     ATTR_ALTERNATIVE,

+ 1 - 1
custom_components/tuya_local/services.py

@@ -3,7 +3,7 @@
 import asyncio
 import logging
 
-import voluptuous as vol
+import probatio as vol
 from homeassistant.components import infrared
 from homeassistant.components.remote import (
     ATTR_DELAY_SECS,

+ 1 - 1
hacs.json

@@ -1,5 +1,5 @@
 {
     "name": "Tuya Local",
-    "homeassistant": "2026.8.0",
+    "homeassistant": "2026.9.0",
     "hacs": "2.0.0"
 }

+ 1 - 1
tests/test_config_flow.py

@@ -3,7 +3,7 @@
 from unittest.mock import AsyncMock
 
 import pytest
-import voluptuous as vol
+import probatio as vol
 from homeassistant.const import CONF_HOST, CONF_NAME
 from homeassistant.data_entry_flow import FlowResultType
 from homeassistant.exceptions import ConfigEntryNotReady

+ 1 - 1
tests/test_device_config.py

@@ -4,7 +4,7 @@ import gc
 import warnings
 
 import pytest
-import voluptuous as vol
+import probatio as vol
 from fuzzywuzzy import fuzz
 from homeassistant.components.sensor import SensorDeviceClass