Expect disconnect

This commit is contained in:
Michael Hansen
2023-12-07 16:13:58 -06:00
parent 71db223bf5
commit d044567d38
+4
View File
@@ -486,6 +486,8 @@ class SatelliteEventHandler(AsyncEventHandler):
except Exception:
_LOGGER.exception("Unexpected error in run_satellite")
except ConnectionResetError:
_LOGGER.info("Server disconnected")
async def run_satellite_wake(self) -> None:
"""Task to read mic input and do local wake word detection."""
@@ -578,6 +580,8 @@ class SatelliteEventHandler(AsyncEventHandler):
pending.add(wake_task)
except Exception:
_LOGGER.exception("Unexpected error in run_satellite")
except ConnectionResetError:
_LOGGER.info("Server disconnected")
# -------------------------------------------------------------------------