From 72e1fa13928ebabea247840042f7fb863dce1de8 Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Fri, 17 Dec 2021 09:16:02 +0100 Subject: [PATCH] Improve availability for Shelly Valve (#62129) --- homeassistant/components/shelly/climate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/shelly/climate.py b/homeassistant/components/shelly/climate.py index cdbff59fa02..d76b66ce181 100644 --- a/homeassistant/components/shelly/climate.py +++ b/homeassistant/components/shelly/climate.py @@ -187,7 +187,7 @@ class BlockSleepingClimate( """Device availability.""" if self.device_block is not None: return not cast(bool, self.device_block.valveError) - return True + return self.wrapper.last_update_success @property def hvac_mode(self) -> str: