mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Fix lingering timer in wiz (#91745)
This commit is contained in:
parent
957181d38f
commit
102613a1af
@ -51,7 +51,9 @@ async def async_setup(hass: HomeAssistant, hass_config: ConfigType) -> bool:
|
|||||||
)
|
)
|
||||||
|
|
||||||
hass.async_create_background_task(_async_discovery(), "wiz-discovery")
|
hass.async_create_background_task(_async_discovery(), "wiz-discovery")
|
||||||
async_track_time_interval(hass, _async_discovery, DISCOVERY_INTERVAL)
|
async_track_time_interval(
|
||||||
|
hass, _async_discovery, DISCOVERY_INTERVAL, cancel_on_shutdown=True
|
||||||
|
)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user