mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 05:47:10 +00:00
Fix lingering timers in flux_led (#91379)
This commit is contained in:
parent
e1a5ad069c
commit
1c0b2630da
@ -102,7 +102,10 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
EVENT_HOMEASSISTANT_STARTED, _async_start_background_discovery
|
EVENT_HOMEASSISTANT_STARTED, _async_start_background_discovery
|
||||||
)
|
)
|
||||||
async_track_time_interval(
|
async_track_time_interval(
|
||||||
hass, _async_start_background_discovery, DISCOVERY_INTERVAL
|
hass,
|
||||||
|
_async_start_background_discovery,
|
||||||
|
DISCOVERY_INTERVAL,
|
||||||
|
cancel_on_shutdown=True,
|
||||||
)
|
)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user