Force bool

This commit is contained in:
epenet
2023-04-20 12:40:05 +00:00
parent 718fc4fc48
commit 65bce837d0

View File

@@ -66,9 +66,9 @@ class BroadlinkDevice:
return self.config.data[CONF_MAC] return self.config.data[CONF_MAC]
@property @property
def available(self) -> bool | None: def available(self) -> bool:
"""Return True if the device is available.""" """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 False
return self.update_manager.available return self.update_manager.available