Switch config_entries to use loop.create_future() (#100011)

pull/100017/head
J. Nick Koston 2023-09-09 17:34:49 -05:00 committed by GitHub
parent b370244ed4
commit e3f228ea52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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(