mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +00:00
Address late review of SwitchBee (#78585)
This commit is contained in:
parent
f2a661026f
commit
42c28cd074
@ -76,7 +76,7 @@ class SwitchBeeSwitchEntity(CoordinatorEntity[SwitchBeeCoordinator], SwitchEntit
|
|||||||
@property
|
@property
|
||||||
def available(self) -> bool:
|
def available(self) -> bool:
|
||||||
"""Return True if entity is available."""
|
"""Return True if entity is available."""
|
||||||
return self._is_online and self.coordinator.last_update_success
|
return self._is_online and super().available
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def _handle_coordinator_update(self) -> None:
|
def _handle_coordinator_update(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user