Address late review of SwitchBee (#78585)

This commit is contained in:
Jafar Atili 2022-09-16 17:10:40 +03:00 committed by GitHub
parent f2a661026f
commit 42c28cd074
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ class SwitchBeeSwitchEntity(CoordinatorEntity[SwitchBeeCoordinator], SwitchEntit
@property
def available(self) -> bool:
"""Return True if entity is available."""
return self._is_online and self.coordinator.last_update_success
return self._is_online and super().available
@callback
def _handle_coordinator_update(self) -> None: