mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
Fix dangling task for insteon (#88293)
This commit is contained in:
parent
517e88600c
commit
28a09199ac
@ -1,5 +1,4 @@
|
|||||||
"""Support for INSTEON Modems (PLM and Hub)."""
|
"""Support for INSTEON Modems (PLM and Hub)."""
|
||||||
import asyncio
|
|
||||||
from contextlib import suppress
|
from contextlib import suppress
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
@ -173,7 +172,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
api.async_load_api(hass)
|
api.async_load_api(hass)
|
||||||
await api.async_register_insteon_frontend(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
|
return True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user