mirror of
https://github.com/home-assistant/core.git
synced 2025-05-12 18:09:17 +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,6 +141,7 @@ async def async_setup_scanner(hass, config, async_see, discovery_info=None):
|
|||||||
try:
|
try:
|
||||||
await async_update(now)
|
await async_update(now)
|
||||||
finally:
|
finally:
|
||||||
|
if not hass.is_stopping:
|
||||||
async_track_point_in_utc_time(
|
async_track_point_in_utc_time(
|
||||||
hass, _async_update_interval, util.dt.utcnow() + interval
|
hass, _async_update_interval, util.dt.utcnow() + interval
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user