Adjust Tuya Water Detector to support 1 as an alarm state (#135933)

This commit is contained in:
Petr V
2025-02-20 22:51:49 +01:00
committed by GitHub
parent 97bf557b32
commit 509add8e5c

View File

@@ -256,7 +256,7 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
TuyaBinarySensorEntityDescription(
key=DPCode.WATERSENSOR_STATE,
device_class=BinarySensorDeviceClass.MOISTURE,
on_value="alarm",
on_value={"1", "alarm"},
),
TAMPER_BINARY_SENSOR,
),