From 217192226548a39f745ab255040ed659f2bae17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Fri, 3 Sep 2021 17:40:07 +0200 Subject: [PATCH] Always show state for the updater binary_sensor (#55584) --- homeassistant/components/updater/binary_sensor.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/updater/binary_sensor.py b/homeassistant/components/updater/binary_sensor.py index 25339f6308a..10090946f6e 100644 --- a/homeassistant/components/updater/binary_sensor.py +++ b/homeassistant/components/updater/binary_sensor.py @@ -26,11 +26,14 @@ class UpdaterBinary(CoordinatorEntity, BinarySensorEntity): _attr_unique_id = "updater" @property - def is_on(self) -> bool | None: - """Return true if the binary sensor is on.""" - if not self.coordinator.data: - return None - return self.coordinator.data.update_available + def available(self) -> bool: + """Return if entity is available.""" + return True + + @property + def is_on(self) -> bool: + """Return true if there is an update available.""" + return self.coordinator.data and self.coordinator.data.update_available @property def extra_state_attributes(self) -> dict | None: