diff --git a/custom_components/uptime_kuma/entity.py b/custom_components/uptime_kuma/entity.py index a14ff04..5f9f5c6 100644 --- a/custom_components/uptime_kuma/entity.py +++ b/custom_components/uptime_kuma/entity.py @@ -68,4 +68,6 @@ def monitor(self) -> UptimeKumaMonitor: @property def monitor_available(self) -> bool: """Returtn if the monitor is available.""" - return bool(self.monitor.monitor_status == 1.0) + return bool( + self.monitor.monitor_status == 1.0 or self.monitor.monitor_status == 2.0 + ) diff --git a/custom_components/uptime_kuma/sensor.py b/custom_components/uptime_kuma/sensor.py index 421dd35..84e3256 100644 --- a/custom_components/uptime_kuma/sensor.py +++ b/custom_components/uptime_kuma/sensor.py @@ -26,6 +26,7 @@ class StatusValue(TypedDict): SENSORS_INFO = { 0.0: StatusValue(value="down", icon="mdi:television-off"), 1.0: StatusValue(value="up", icon="mdi:television-shimmer"), + 2.0: StatusValue(value="pending", icon="mdi:sync"), }