Fix status type in Shelly climate platform (#63347)

This commit is contained in:
Maciej Bieniek 2022-01-04 19:32:25 +01:00 committed by GitHub
parent 6af99882c5
commit 16f6bad897
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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