mirror of
https://github.com/home-assistant/core.git
synced 2026-12-06 13:45:55 -04:00
Remove redundant flow check in config entries flow init (#191802)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user