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
@@ -46,4 +46,8 @@ class MBSecurePointEntity(MBSecureEntity, BinarySensorEntity):
item = self.bridge_object
if item is None:
return None
return item.state in {"active", "on", "open", "triggered"}
if item.state in {"active", "on", "open", "triggered"}:
return True
if item.state in {"clear", "closed", "inactive", "off"}:
return False
return None