Fix dangling task for insteon (#88293)
parent
517e88600c
commit
28a09199ac
|
@ -1,5 +1,4 @@
|
|||
"""Support for INSTEON Modems (PLM and Hub)."""
|
||||
import asyncio
|
||||
from contextlib import suppress
|
||||
import logging
|
||||
|
||||
|
@ -173,7 +172,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||
api.async_load_api(hass)
|
||||
await api.async_register_insteon_frontend(hass)
|
||||
|
||||
asyncio.create_task(async_get_device_config(hass, entry))
|
||||
entry.async_create_background_task(
|
||||
hass, async_get_device_config(hass, entry), "insteon-get-device-config"
|
||||
)
|
||||
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue