mirror of
https://github.com/home-assistant/core.git
synced 2025-05-12 01:49:16 +00:00
Do not schedule future ping device tracker updates once hass is stopping (#49236)
This commit is contained in:
parent
e86aad34b9
commit
54322f84c5
@ -141,9 +141,10 @@ async def async_setup_scanner(hass, config, async_see, discovery_info=None):
|
|||||||
try:
|
try:
|
||||||
await async_update(now)
|
await async_update(now)
|
||||||
finally:
|
finally:
|
||||||
async_track_point_in_utc_time(
|
if not hass.is_stopping:
|
||||||
hass, _async_update_interval, util.dt.utcnow() + interval
|
async_track_point_in_utc_time(
|
||||||
)
|
hass, _async_update_interval, util.dt.utcnow() + interval
|
||||||
|
)
|
||||||
|
|
||||||
await _async_update_interval(None)
|
await _async_update_interval(None)
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user