mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Remove FlowManager.async_post_init (#142462)
This commit is contained in:
parent
33fa8df73e
commit
a026820483
@ -219,13 +219,6 @@ class FlowManager(abc.ABC, Generic[_FlowContextT, _FlowResultT, _HandlerT]):
|
||||
FlowResultType.CREATE_ENTRY.
|
||||
"""
|
||||
|
||||
async def async_post_init(
|
||||
self,
|
||||
flow: FlowHandler[_FlowContextT, _FlowResultT, _HandlerT],
|
||||
result: _FlowResultT,
|
||||
) -> None:
|
||||
"""Entry has finished executing its first step asynchronously."""
|
||||
|
||||
@callback
|
||||
def async_get(self, flow_id: str) -> _FlowResultT:
|
||||
"""Return a flow in progress as a partial FlowResult."""
|
||||
@ -312,12 +305,7 @@ class FlowManager(abc.ABC, Generic[_FlowContextT, _FlowResultT, _HandlerT]):
|
||||
flow.init_data = data
|
||||
self._async_add_flow_progress(flow)
|
||||
|
||||
result = await self._async_handle_step(flow, flow.init_step, data)
|
||||
|
||||
if result["type"] != FlowResultType.ABORT:
|
||||
await self.async_post_init(flow, result)
|
||||
|
||||
return result
|
||||
return await self._async_handle_step(flow, flow.init_step, data)
|
||||
|
||||
async def async_configure(
|
||||
self, flow_id: str, user_input: dict | None = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user