mirror of
https://github.com/home-assistant/core.git
synced 2026-03-06 14:05:14 +01:00
Set entities as unavailable if last update was not successful (#54229)
This commit is contained in:
@@ -75,4 +75,6 @@ class UptimeRobotEntity(CoordinatorEntity):
|
||||
@property
|
||||
def available(self) -> bool:
|
||||
"""Returtn if entity is available."""
|
||||
if not self.coordinator.last_update_success:
|
||||
return False
|
||||
return self.monitor is not None
|
||||
|
||||
Reference in New Issue
Block a user