Fix lingering timer in unifiprotect discovery (#91695)
This commit is contained in:
parent
54a659c51b
commit
2df5d34374
1 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,10 @@ def async_start_discovery(hass: HomeAssistant) -> None:
|
|||
# Do not block startup since discovery takes 31s or more
|
||||
_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,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue