Improve availability for Shelly Valve (#62129)

This commit is contained in:
Simone Chemelli 2021-12-17 09:16:02 +01:00 committed by Franck Nijhof
parent 78f40bd4bf
commit b4af32624d
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

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