Fix lingering timer in hassio (#92854)
parent
923276a333
commit
337b59ba23
|
@ -596,7 +596,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: # noqa:
|
||||||
# os info not yet fetched from supervisor, retry later
|
# os info not yet fetched from supervisor, retry later
|
||||||
async_track_point_in_utc_time(
|
async_track_point_in_utc_time(
|
||||||
hass,
|
hass,
|
||||||
_async_setup_hardware_integration,
|
async_setup_hardware_integration_job,
|
||||||
utcnow() + HASSIO_UPDATE_INTERVAL,
|
utcnow() + HASSIO_UPDATE_INTERVAL,
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
@ -610,6 +610,10 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: # noqa:
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
async_setup_hardware_integration_job = HassJob(
|
||||||
|
_async_setup_hardware_integration, cancel_on_shutdown=True
|
||||||
|
)
|
||||||
|
|
||||||
await _async_setup_hardware_integration()
|
await _async_setup_hardware_integration()
|
||||||
|
|
||||||
hass.async_create_task(
|
hass.async_create_task(
|
||||||
|
|
Loading…
Reference in New Issue