mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Switch config_entries to use loop.create_future() (#100011)
This commit is contained in:
parent
b370244ed4
commit
e3f228ea52
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user