mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +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.
|
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
|
@callback
|
||||||
def async_get(self, flow_id: str) -> _FlowResultT:
|
def async_get(self, flow_id: str) -> _FlowResultT:
|
||||||
"""Return a flow in progress as a partial FlowResult."""
|
"""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
|
flow.init_data = data
|
||||||
self._async_add_flow_progress(flow)
|
self._async_add_flow_progress(flow)
|
||||||
|
|
||||||
result = await self._async_handle_step(flow, flow.init_step, data)
|
return await self._async_handle_step(flow, flow.init_step, data)
|
||||||
|
|
||||||
if result["type"] != FlowResultType.ABORT:
|
|
||||||
await self.async_post_init(flow, result)
|
|
||||||
|
|
||||||
return result
|
|
||||||
|
|
||||||
async def async_configure(
|
async def async_configure(
|
||||||
self, flow_id: str, user_input: dict | None = None
|
self, flow_id: str, user_input: dict | None = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user