From 65bce837d0e9beb4eb5aff8c190b412969684d4a Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 20 Apr 2023 12:40:05 +0000 Subject: [PATCH] Force bool --- homeassistant/components/broadlink/device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/broadlink/device.py b/homeassistant/components/broadlink/device.py index 87d8cf398fb..c42502bd522 100644 --- a/homeassistant/components/broadlink/device.py +++ b/homeassistant/components/broadlink/device.py @@ -66,9 +66,9 @@ class BroadlinkDevice: return self.config.data[CONF_MAC] @property - def available(self) -> bool | None: + def available(self) -> bool: """Return True if the device is available.""" - if self.update_manager is None: + if self.update_manager is None or self.update_manager.available is None: return False return self.update_manager.available