Fix blocking I/O in the event loop when loading timezones (#117721)
This commit is contained in:
parent
0293315b23
commit
5a609c34bb
98 changed files with 294 additions and 217 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue