mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix cloud binary_sensor & TTS/STT (#34505)
This commit is contained in:
parent
08e74352ec
commit
5f2a9ed965
@ -190,8 +190,6 @@ async def async_setup(hass, config):
|
|||||||
client = CloudClient(hass, prefs, websession, alexa_conf, google_conf)
|
client = CloudClient(hass, prefs, websession, alexa_conf, google_conf)
|
||||||
cloud = hass.data[DOMAIN] = Cloud(client, **kwargs)
|
cloud = hass.data[DOMAIN] = Cloud(client, **kwargs)
|
||||||
|
|
||||||
await cloud.start()
|
|
||||||
|
|
||||||
async def _shutdown(event):
|
async def _shutdown(event):
|
||||||
"""Shutdown event."""
|
"""Shutdown event."""
|
||||||
await cloud.stop()
|
await cloud.stop()
|
||||||
@ -233,6 +231,7 @@ async def async_setup(hass, config):
|
|||||||
|
|
||||||
cloud.iot.register_on_connect(_on_connect)
|
cloud.iot.register_on_connect(_on_connect)
|
||||||
|
|
||||||
|
await cloud.start()
|
||||||
await http_api.async_setup(hass)
|
await http_api.async_setup(hass)
|
||||||
|
|
||||||
account_link.async_setup(hass)
|
account_link.async_setup(hass)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user