Fix a bug with Ambient PWS reconnection (#24540)

pull/24565/head
Aaron Bach 2019-06-15 13:49:40 -06:00 committed by Paulus Schoutsen
parent 6b3c740dc3
commit c629f24f07
4 changed files with 4 additions and 4 deletions

View File

@ -327,7 +327,7 @@ 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:
if self._watchdog_listener is not None:
self._watchdog_listener()
self._watchdog_listener = async_call_later(
self._hass, DEFAULT_WATCHDOG_SECONDS, _ws_reconnect)

View File

@ -4,7 +4,7 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/components/ambient_station",
"requirements": [
"aioambient==0.3.0"
"aioambient==0.3.1"
],
"dependencies": [],
"codeowners": [

View File

@ -114,7 +114,7 @@ adguardhome==0.2.1
afsapi==0.0.4
# homeassistant.components.ambient_station
aioambient==0.3.0
aioambient==0.3.1
# homeassistant.components.asuswrt
aioasuswrt==1.1.21

View File

@ -39,7 +39,7 @@ YesssSMS==0.2.3
adguardhome==0.2.1
# homeassistant.components.ambient_station
aioambient==0.3.0
aioambient==0.3.1
# homeassistant.components.automatic
aioautomatic==0.6.5