Fix yolink abnormal status when LeakSensor detection mode changes to "no water detect" (#109575)
Add no water detect support
This commit is contained in:
parent
f6d2f6117a
commit
630c8b28ca
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ SENSOR_TYPES: tuple[YoLinkBinarySensorEntityDescription, ...] = (
|
|||
YoLinkBinarySensorEntityDescription(
|
||||
key="leak_state",
|
||||
device_class=BinarySensorDeviceClass.MOISTURE,
|
||||
value=lambda value: value == "alert" if value is not None else None,
|
||||
value=lambda value: value in ("alert", "full") if value is not None else None,
|
||||
exists_fn=lambda device: device.device_type == ATTR_DEVICE_LEAK_SENSOR,
|
||||
),
|
||||
YoLinkBinarySensorEntityDescription(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue