Fix a bug with Ambient PWS reconnection (#24540)
parent
6b3c740dc3
commit
c629f24f07
|
@ -327,7 +327,7 @@ class AmbientStation:
|
||||||
"""Define a handler to fire when the websocket is connected."""
|
"""Define a handler to fire when the websocket is connected."""
|
||||||
_LOGGER.info('Connected to websocket')
|
_LOGGER.info('Connected to websocket')
|
||||||
_LOGGER.debug('Watchdog starting')
|
_LOGGER.debug('Watchdog starting')
|
||||||
if self._watchdog_listener:
|
if self._watchdog_listener is not None:
|
||||||
self._watchdog_listener()
|
self._watchdog_listener()
|
||||||
self._watchdog_listener = async_call_later(
|
self._watchdog_listener = async_call_later(
|
||||||
self._hass, DEFAULT_WATCHDOG_SECONDS, _ws_reconnect)
|
self._hass, DEFAULT_WATCHDOG_SECONDS, _ws_reconnect)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/components/ambient_station",
|
"documentation": "https://www.home-assistant.io/components/ambient_station",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"aioambient==0.3.0"
|
"aioambient==0.3.1"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": [
|
"codeowners": [
|
||||||
|
|
|
@ -114,7 +114,7 @@ adguardhome==0.2.1
|
||||||
afsapi==0.0.4
|
afsapi==0.0.4
|
||||||
|
|
||||||
# homeassistant.components.ambient_station
|
# homeassistant.components.ambient_station
|
||||||
aioambient==0.3.0
|
aioambient==0.3.1
|
||||||
|
|
||||||
# homeassistant.components.asuswrt
|
# homeassistant.components.asuswrt
|
||||||
aioasuswrt==1.1.21
|
aioasuswrt==1.1.21
|
||||||
|
|
|
@ -39,7 +39,7 @@ YesssSMS==0.2.3
|
||||||
adguardhome==0.2.1
|
adguardhome==0.2.1
|
||||||
|
|
||||||
# homeassistant.components.ambient_station
|
# homeassistant.components.ambient_station
|
||||||
aioambient==0.3.0
|
aioambient==0.3.1
|
||||||
|
|
||||||
# homeassistant.components.automatic
|
# homeassistant.components.automatic
|
||||||
aioautomatic==0.6.5
|
aioautomatic==0.6.5
|
||||||
|
|
Loading…
Reference in New Issue