Stop sending events on failure

This commit is contained in:
Michael Hansen
2023-12-11 14:55:51 -06:00
parent da1c134f8b
commit 8b6b6dfa58
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
wyoming==1.4.0 wyoming==1.4.1
zeroconf==0.88.0 zeroconf==0.88.0
pyring-buffer==1.0.0 pyring-buffer==1.0.0
+4
View File
@@ -170,7 +170,11 @@ class SatelliteBase:
if self._writer is None: if self._writer is None:
return return
try:
await async_write_event(event, self._writer) await async_write_event(event, self._writer)
except Exception:
_LOGGER.exception("Unexpected error sending event to server")
self._writer = None
async def _send_run_pipeline(self) -> None: async def _send_run_pipeline(self) -> None:
if self.settings.wake.enabled: if self.settings.wake.enabled: