Harden bridge state and reauthentication handling

This commit is contained in:
2026-09-04 13:07:21 +02:00
parent 9766f7f9b2
commit 1d51e56272
9 changed files with 264 additions and 12 deletions
+5 -1
View File
@@ -48,7 +48,11 @@ class MBSecureOutputEntity(MBSecureEntity, SwitchEntity):
item = self.bridge_object
if item is None:
return None
return item.state == "on"
if item.state == "on":
return True
if item.state == "off":
return False
return None
async def async_turn_on(self, **kwargs: Any) -> None:
"""Turn the output on."""