Block all calls to protect client when the connection is

dropped and we are awaiting a reconnect
This commit is contained in:
Sebastian Goscik
2023-07-08 16:30:09 +01:00
parent 6c719c0162
commit c4e9a42c1a
5 changed files with 16 additions and 0 deletions

View File

@@ -123,6 +123,9 @@ class MissingEventChecker:
logger.info("Starting Missing Event Checker")
while True:
try:
# Wait for unifi protect to be connected
await self._protect.connect_event.wait()
logger.extra_debug("Running check for missing events...")
wanted_events = await self._get_missing_events()