Fix blocking I/O in the event loop when loading timezones (#117721)

This commit is contained in:
J. Nick Koston
2024-05-19 23:06:03 -10:00
committed by GitHub
parent 0293315b23
commit 5a609c34bb
98 changed files with 294 additions and 217 deletions

View File

@@ -910,7 +910,7 @@ async def async_process_ha_core_config(hass: HomeAssistant, config: dict) -> Non
_raise_issue_if_no_country(hass, hass.config.country)
if CONF_TIME_ZONE in config:
hac.set_time_zone(config[CONF_TIME_ZONE])
await hac.async_set_time_zone(config[CONF_TIME_ZONE])
if CONF_MEDIA_DIRS not in config:
if is_docker_env():