mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Fix yolink protocol changed (#122989)
This commit is contained in:
parent
8375b58eac
commit
55e5428443
@ -37,7 +37,7 @@ DEVICE_TYPES: tuple[YoLinkValveEntityDescription, ...] = (
|
|||||||
key="valve_state",
|
key="valve_state",
|
||||||
translation_key="meter_valve_state",
|
translation_key="meter_valve_state",
|
||||||
device_class=ValveDeviceClass.WATER,
|
device_class=ValveDeviceClass.WATER,
|
||||||
value=lambda value: value == "closed" if value is not None else None,
|
value=lambda value: value != "open" if value is not None else None,
|
||||||
exists_fn=lambda device: device.device_type
|
exists_fn=lambda device: device.device_type
|
||||||
== ATTR_DEVICE_WATER_METER_CONTROLLER
|
== ATTR_DEVICE_WATER_METER_CONTROLLER
|
||||||
and not device.device_model_name.startswith(DEV_MODEL_WATER_METER_YS5007),
|
and not device.device_model_name.startswith(DEV_MODEL_WATER_METER_YS5007),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user