mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Do not schedule future ping device tracker updates once hass is stopping (#49236)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user