mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 06:05:10 +02:00
Reduce hassio startup time (#114588)
This commit is contained in:
@@ -368,7 +368,9 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: # noqa:
|
|||||||
require_admin=True,
|
require_admin=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
await hassio.update_hass_api(config.get("http", {}), refresh_token)
|
update_hass_api_task = hass.async_create_task(
|
||||||
|
hassio.update_hass_api(config.get("http", {}), refresh_token), eager_start=True
|
||||||
|
)
|
||||||
|
|
||||||
last_timezone = None
|
last_timezone = None
|
||||||
|
|
||||||
@@ -481,6 +483,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: # noqa:
|
|||||||
# _async_setup_hardware_integration is called
|
# _async_setup_hardware_integration is called
|
||||||
# so the hardware integration can be set up
|
# so the hardware integration can be set up
|
||||||
# and does not fallback to calling later
|
# and does not fallback to calling later
|
||||||
|
await update_hass_api_task
|
||||||
await panels_task
|
await panels_task
|
||||||
await update_info_task
|
await update_info_task
|
||||||
await push_config_task
|
await push_config_task
|
||||||
|
Reference in New Issue
Block a user