From 153c6957b9a9d9436eeef02c87a4b71f618dfbc9 Mon Sep 17 00:00:00 2001 From: Aaron Bach <bachya1208@gmail.com> Date: Wed, 10 Apr 2019 15:25:19 -0600 Subject: [PATCH] Add watchdog reset to on_connect in Ambient (#22956) --- homeassistant/components/ambient_station/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/ambient_station/__init__.py b/homeassistant/components/ambient_station/__init__.py index 6dee4637a96..944d4e14e7d 100644 --- a/homeassistant/components/ambient_station/__init__.py +++ b/homeassistant/components/ambient_station/__init__.py @@ -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) -- GitLab