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

pull/139012/head
Petr V 2025-02-20 22:51:49 +01:00 committed by Franck Nijhof
parent 759cc3303a
commit c9a0814142
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 1 additions and 1 deletions

View File

@ -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,
), ),