From e3f228ea52f962b3a11b22f824be41d42e2f9bff Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 9 Sep 2023 17:34:49 -0500 Subject: [PATCH] Switch config_entries to use loop.create_future() (#100011) --- homeassistant/config_entries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/config_entries.py b/homeassistant/config_entries.py index f627b804989..046f403642e 100644 --- a/homeassistant/config_entries.py +++ b/homeassistant/config_entries.py @@ -859,7 +859,7 @@ class ConfigEntriesFlowManager(data_entry_flow.FlowManager): flow_id = uuid_util.random_uuid_hex() if context["source"] == SOURCE_IMPORT: - init_done: asyncio.Future[None] = asyncio.Future() + init_done: asyncio.Future[None] = self.hass.loop.create_future() self._pending_import_flows.setdefault(handler, {})[flow_id] = init_done task = asyncio.create_task(