mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix dangling task for bluetooth_le_tracker (#88284)
This commit is contained in:
parent
91ecdc83b2
commit
710b250c1d
@ -185,8 +185,9 @@ async def async_setup_scanner( # noqa: C901
|
||||
and now > devs_track_battery[mac] + battery_track_interval
|
||||
):
|
||||
devs_track_battery[mac] = now
|
||||
asyncio.create_task(
|
||||
_async_see_update_ble_battery(mac, now, service_info)
|
||||
hass.async_create_background_task(
|
||||
_async_see_update_ble_battery(mac, now, service_info),
|
||||
"bluetooth_le_tracker.device_tracker-see_update_ble_battery",
|
||||
)
|
||||
|
||||
if track_new:
|
||||
|
Loading…
x
Reference in New Issue
Block a user