mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Small speed up to starting and stopping cloud (#114696)
This commit is contained in:
parent
06a752aa92
commit
d17f308c6a
@ -262,7 +262,9 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
"""Shutdown event."""
|
"""Shutdown event."""
|
||||||
await cloud.stop()
|
await cloud.stop()
|
||||||
|
|
||||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, _shutdown)
|
hass.bus.async_listen_once(
|
||||||
|
EVENT_HOMEASSISTANT_STOP, _shutdown, run_immediately=True
|
||||||
|
)
|
||||||
|
|
||||||
_remote_handle_prefs_updated(cloud)
|
_remote_handle_prefs_updated(cloud)
|
||||||
|
|
||||||
@ -343,7 +345,8 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
DOMAIN,
|
DOMAIN,
|
||||||
{"platform_loaded": tts_platform_loaded},
|
{"platform_loaded": tts_platform_loaded},
|
||||||
config,
|
config,
|
||||||
)
|
),
|
||||||
|
eager_start=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
async_call_later(
|
async_call_later(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user