From ad8b4b2d6ecbda5968d32fbf034f0ea22b7a96b0 Mon Sep 17 00:00:00 2001 From: Matrix Date: Tue, 7 Jul 2026 21:16:38 +0800 Subject: [PATCH] Fixed YoLink water meter controller valve status showing as "Unknown" (#175835) --- homeassistant/components/yolink/valve.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/yolink/valve.py b/homeassistant/components/yolink/valve.py index 4c0d4e6464b5..2842714454dd 100644 --- a/homeassistant/components/yolink/valve.py +++ b/homeassistant/components/yolink/valve.py @@ -62,6 +62,7 @@ DEVICE_TYPES: tuple[YoLinkValveEntityDescription, ...] = ( device.device_type == ATTR_DEVICE_WATER_METER_CONTROLLER and not device.device_model_name.startswith(DEV_MODEL_WATER_METER_YS5007) ), + should_update_entity=lambda value: value is not None, ), YoLinkValveEntityDescription( key="valve_1_state", @@ -71,6 +72,7 @@ DEVICE_TYPES: tuple[YoLinkValveEntityDescription, ...] = ( exists_fn=lambda device: ( device.device_type == ATTR_DEVICE_MULTI_WATER_METER_CONTROLLER ), + should_update_entity=lambda value: value is not None, channel_index=0, ), YoLinkValveEntityDescription( @@ -81,6 +83,7 @@ DEVICE_TYPES: tuple[YoLinkValveEntityDescription, ...] = ( exists_fn=lambda device: ( device.device_type == ATTR_DEVICE_MULTI_WATER_METER_CONTROLLER ), + should_update_entity=lambda value: value is not None, channel_index=1, ), YoLinkValveEntityDescription(