Skip to content
Snippets Groups Projects
Unverified Commit 153c6957 authored by Aaron Bach's avatar Aaron Bach Committed by GitHub
Browse files

Add watchdog reset to on_connect in Ambient (#22956)

parent 7862fdd2
No related branches found
No related tags found
No related merge requests found
......@@ -329,6 +329,8 @@ class AmbientStation:
"""Define a handler to fire when the websocket is connected."""
_LOGGER.info('Connected to websocket')
_LOGGER.debug('Watchdog starting')
if self._watchdog_listener:
self._watchdog_listener()
self._watchdog_listener = async_call_later(
self._hass, DEFAULT_WATCHDOG_SECONDS, _ws_reconnect)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment