mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 19:55:10 +02:00
Fix lingering timers in flux_led (#91379)
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user