mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Improve availability for Shelly Valve (#62129)
This commit is contained in:
parent
beb824c452
commit
72e1fa1392
@ -187,7 +187,7 @@ class BlockSleepingClimate(
|
|||||||
"""Device availability."""
|
"""Device availability."""
|
||||||
if self.device_block is not None:
|
if self.device_block is not None:
|
||||||
return not cast(bool, self.device_block.valveError)
|
return not cast(bool, self.device_block.valveError)
|
||||||
return True
|
return self.wrapper.last_update_success
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def hvac_mode(self) -> str:
|
def hvac_mode(self) -> str:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user