Harden bridge state and reauthentication handling
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user