From 0ff88fd366f96ece00d2a3bceb6c56815ef358db Mon Sep 17 00:00:00 2001 From: SapuSeven Date: Fri, 26 Sep 2025 21:57:01 +0200 Subject: [PATCH] Add None-check for VeSync fan device.state.display_status (#153055) --- homeassistant/components/vesync/fan.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/vesync/fan.py b/homeassistant/components/vesync/fan.py index 0c28faac59f..5eeb524bc24 100644 --- a/homeassistant/components/vesync/fan.py +++ b/homeassistant/components/vesync/fan.py @@ -141,7 +141,9 @@ class VeSyncFanHA(VeSyncBaseEntity, FanEntity): attr["active_time"] = self.device.state.active_time if hasattr(self.device.state, "display_status"): - attr["display_status"] = self.device.state.display_status.value + attr["display_status"] = getattr( + self.device.state.display_status, "value", None + ) if hasattr(self.device.state, "child_lock"): attr["child_lock"] = self.device.state.child_lock