We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df95683 commit 0a35972Copy full SHA for 0a35972
apps/predbat/ha.py
@@ -308,7 +308,7 @@ def bridge_event(self, loop):
308
while not self.api_stop:
309
self.ws_sync_event.wait(timeout=1.0)
310
self.ws_sync_event.clear()
311
- if self.ws_event_loop and self.ws_async_event:
+ if self.ws_event_loop and self.ws_async_event and not loop.is_closed():
312
loop.call_soon_threadsafe(self.ws_async_event.set)
313
314
def call_service_websocket_command(self, domain, service, data):
0 commit comments