Harden bridge state and reauthentication handling
This commit is contained in:
@@ -56,7 +56,12 @@ class MBSecureEntity(CoordinatorEntity[MBSecureCoordinator]):
|
||||
@property
|
||||
def available(self) -> bool:
|
||||
"""Report availability from both transport and topology state."""
|
||||
return super().available and self.bridge_object is not None
|
||||
return (
|
||||
super().available
|
||||
and self.bridge_object is not None
|
||||
and self.coordinator.info is not None
|
||||
and self.coordinator.info.connected
|
||||
)
|
||||
|
||||
@property
|
||||
def name(self) -> str | None:
|
||||
|
||||
Reference in New Issue
Block a user