Fix lingering timers in flux_led (#91379)

This commit is contained in:
epenet 2023-04-13 23:54:29 +02:00 committed by GitHub
parent e1a5ad069c
commit 1c0b2630da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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