From a485b14293588bf5d82bf64d391f447ff5743936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sat, 7 Aug 2021 20:22:19 +0200 Subject: [PATCH] Set entities as unavailable if last update was not successful (#54229) --- homeassistant/components/uptimerobot/entity.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/uptimerobot/entity.py b/homeassistant/components/uptimerobot/entity.py index 4b4847dfc7c..b265af77535 100644 --- a/homeassistant/components/uptimerobot/entity.py +++ b/homeassistant/components/uptimerobot/entity.py @@ -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