mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 22:07:10 +00:00
Adjust Tuya Water Detector to support 1 as an alarm state (#135933)
This commit is contained in:
parent
97bf557b32
commit
509add8e5c
@ -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…
x
Reference in New Issue
Block a user