mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
Fix yolink protocol changed (#122989)
This commit is contained in:
@@ -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),
|
||||||
|
Reference in New Issue
Block a user