Fix lingering timers in flux_led (#91379)
This commit is contained in:
parent
e1a5ad069c
commit
1c0b2630da
1 changed files with 4 additions and 1 deletions
|
@ -102,7 +102,10 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||
EVENT_HOMEASSISTANT_STARTED, _async_start_background_discovery
|
||||
)
|
||||
async_track_time_interval(
|
||||
hass, _async_start_background_discovery, DISCOVERY_INTERVAL
|
||||
hass,
|
||||
_async_start_background_discovery,
|
||||
DISCOVERY_INTERVAL,
|
||||
cancel_on_shutdown=True,
|
||||
)
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue