Update timezone in supervisor in an eager task (#113113)
parent
1536a3981f
commit
e71398d1e0
|
@ -384,7 +384,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: # noqa:
|
||||||
last_timezone = new_timezone
|
last_timezone = new_timezone
|
||||||
await hassio.update_hass_timezone(new_timezone)
|
await hassio.update_hass_timezone(new_timezone)
|
||||||
|
|
||||||
hass.bus.async_listen(EVENT_CORE_CONFIG_UPDATE, push_config)
|
hass.bus.async_listen(EVENT_CORE_CONFIG_UPDATE, push_config, run_immediately=True)
|
||||||
|
|
||||||
push_config_task = hass.async_create_task(push_config(None), eager_start=True)
|
push_config_task = hass.async_create_task(push_config(None), eager_start=True)
|
||||||
# Start listening for problems with supervisor and making issues
|
# Start listening for problems with supervisor and making issues
|
||||||
|
|
Loading…
Reference in New Issue