mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
This commit is contained in:
parent
6e4a99cec0
commit
91dc0c3731
@ -27,7 +27,7 @@ from .const import (
|
||||
# We need an import from .config_flow, without it .config_flow is never loaded.
|
||||
from .config_flow import HangoutsFlowHandler # noqa: F401
|
||||
|
||||
REQUIREMENTS = ['hangups==0.4.5']
|
||||
REQUIREMENTS = ['hangups==0.4.6']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -191,16 +191,19 @@ class HangoutsBot:
|
||||
self._connected = True
|
||||
dispatcher.async_dispatcher_send(self.hass, EVENT_HANGOUTS_CONNECTED)
|
||||
|
||||
def _on_disconnect(self):
|
||||
async def _on_disconnect(self):
|
||||
"""Handle disconnecting."""
|
||||
_LOGGER.debug('Connection lost!')
|
||||
self._connected = False
|
||||
dispatcher.async_dispatcher_send(self.hass,
|
||||
EVENT_HANGOUTS_DISCONNECTED)
|
||||
if self._connected:
|
||||
_LOGGER.debug('Connection lost! Reconnect...')
|
||||
await self.async_connect()
|
||||
else:
|
||||
dispatcher.async_dispatcher_send(self.hass,
|
||||
EVENT_HANGOUTS_DISCONNECTED)
|
||||
|
||||
async def async_disconnect(self):
|
||||
"""Disconnect the client if it is connected."""
|
||||
if self._connected:
|
||||
self._connected = False
|
||||
await self._client.disconnect()
|
||||
|
||||
async def async_handle_hass_stop(self, _):
|
||||
|
@ -434,7 +434,7 @@ ha-philipsjs==0.0.5
|
||||
habitipy==0.2.0
|
||||
|
||||
# homeassistant.components.hangouts
|
||||
hangups==0.4.5
|
||||
hangups==0.4.6
|
||||
|
||||
# homeassistant.components.mqtt.server
|
||||
hbmqtt==0.9.4
|
||||
|
@ -78,7 +78,7 @@ georss_client==0.3
|
||||
ha-ffmpeg==1.9
|
||||
|
||||
# homeassistant.components.hangouts
|
||||
hangups==0.4.5
|
||||
hangups==0.4.6
|
||||
|
||||
# homeassistant.components.mqtt.server
|
||||
hbmqtt==0.9.4
|
||||
|
Loading…
x
Reference in New Issue
Block a user