Remove redundant flow check in config entries flow init (#191802)

This commit is contained in:
epenet
2026-11-10 12:45:52 +01:00
committed by GitHub
parent 1eaba61621
commit e6fbfd8bec
-2
View File
@@ -1747,8 +1747,6 @@ class ConfigEntriesFlowManager(
) -> tuple[ConfigFlow, ConfigFlowResult]:
"""Run the init in a task to allow it to be canceled at shutdown."""
flow = await self.async_create_flow(handler, context=context, data=data)
if not flow:
raise data_entry_flow.UnknownFlow("Flow was not created")
flow.hass = self.hass
flow.handler = handler
flow.flow_id = flow_id