From 16f6bad89750512abc65a97b81c1cf1ed69e1a4a Mon Sep 17 00:00:00 2001 From: Maciej Bieniek Date: Tue, 4 Jan 2022 19:32:25 +0100 Subject: [PATCH] Fix status type in Shelly climate platform (#63347) --- 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 4b535e584c7..cd2a5c247d5 100644 --- a/homeassistant/components/shelly/climate.py +++ b/homeassistant/components/shelly/climate.py @@ -219,7 +219,7 @@ class BlockSleepingClimate( return CURRENT_HVAC_OFF return ( - CURRENT_HVAC_IDLE if self.device_block.status == "0" else CURRENT_HVAC_HEAT + CURRENT_HVAC_HEAT if bool(self.device_block.status) else CURRENT_HVAC_IDLE ) @property