Adjust Tuya Water Detector to support 1 as an alarm state (#135933)
parent
759cc3303a
commit
c9a0814142
|
@ -256,7 +256,7 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
|
||||||
TuyaBinarySensorEntityDescription(
|
TuyaBinarySensorEntityDescription(
|
||||||
key=DPCode.WATERSENSOR_STATE,
|
key=DPCode.WATERSENSOR_STATE,
|
||||||
device_class=BinarySensorDeviceClass.MOISTURE,
|
device_class=BinarySensorDeviceClass.MOISTURE,
|
||||||
on_value="alarm",
|
on_value={"1", "alarm"},
|
||||||
),
|
),
|
||||||
TAMPER_BINARY_SENSOR,
|
TAMPER_BINARY_SENSOR,
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue