Remove FlowManager.async_post_init (#142462)

This commit is contained in:
Erik Montnemery 2025-04-07 13:28:27 +02:00 committed by GitHub
parent 33fa8df73e
commit a026820483
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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