mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Fix dangling task for livisi (#88294)
This commit is contained in:
parent
d866b0ddcb
commit
91ecdc83b2
@ -1,7 +1,6 @@
|
||||
"""The Livisi Smart Home integration."""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
from typing import Final
|
||||
|
||||
from aiohttp import ClientConnectorError
|
||||
@ -41,7 +40,9 @@ async def async_setup_entry(hass: core.HomeAssistant, entry: ConfigEntry) -> boo
|
||||
|
||||
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
|
||||
await coordinator.async_config_entry_first_refresh()
|
||||
asyncio.create_task(coordinator.ws_connect())
|
||||
entry.async_create_background_task(
|
||||
hass, coordinator.ws_connect(), "livisi-ws_connect"
|
||||
)
|
||||
return True
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user