Public Member Functions | |
| None | __init__ (self, HomeAssistant hass) |
| None | async_abort (self, str flow_id) |
| _FlowResultT | async_configure (self, str flow_id, dict|None user_input=None) |
| FlowHandler[_FlowContextT, _FlowResultT, _HandlerT] | async_create_flow (self, _HandlerT handler_key, *_FlowContextT|None context=None, dict[str, Any]|None data=None) |
| _FlowResultT | async_finish_flow (self, FlowHandler[_FlowContextT, _FlowResultT, _HandlerT] flow, _FlowResultT result) |
| _FlowResultT | async_get (self, str flow_id) |
| _FlowResultT | async_init (self, _HandlerT handler, *_FlowContextT|None context=None, Any data=None) |
| None | async_post_init (self, FlowHandler[_FlowContextT, _FlowResultT, _HandlerT] flow, _FlowResultT result) |
| list[_FlowResultT] | async_progress (self, bool include_uninitialized=False) |
| list[_FlowResultT] | async_progress_by_handler (self, _HandlerT handler, bool include_uninitialized=False, dict[str, Any]|None match_context=None) |
| list[_FlowResultT] | async_progress_by_init_data_type (self, type init_data_type, Callable[[Any], bool] matcher, bool include_uninitialized=False) |
Public Attributes | |
| hass | |
Manage all the flows that are in progress.
Definition at line 202 of file data_entry_flow.py.
| None homeassistant.data_entry_flow.FlowManager.__init__ | ( | self, | |
| HomeAssistant | hass | ||
| ) |
Initialize the flow manager.
Definition at line 207 of file data_entry_flow.py.
|
private |
Add a flow to in progress.
Definition at line 470 of file data_entry_flow.py.
|
private |
Continue a data entry flow.
Definition at line 373 of file data_entry_flow.py.
|
private |
Convert a list of FlowHandler to a partial FlowResult that can be serialized.
Definition at line 603 of file data_entry_flow.py.
|
private |
Handle a step of a flow.
Definition at line 506 of file data_entry_flow.py.
|
private |
Return the flows in progress by handler. If match_context is specified, only return flows with a context that is a superset of match_context.
Definition at line 305 of file data_entry_flow.py.
|
private |
Remove a flow from in progress.
Definition at line 480 of file data_entry_flow.py.
|
private |
Remove a flow from in progress.
Definition at line 495 of file data_entry_flow.py.
|
private |
Set up preview for a flow handler.
Definition at line 594 of file data_entry_flow.py.
|
private |
Raise if the step does not exist.
Definition at line 582 of file data_entry_flow.py.
| None homeassistant.data_entry_flow.FlowManager.async_abort | ( | self, | |
| str | flow_id | ||
| ) |
Abort a flow.
Definition at line 465 of file data_entry_flow.py.
| _FlowResultT homeassistant.data_entry_flow.FlowManager.async_configure | ( | self, | |
| str | flow_id, | ||
| dict | None | user_input = None |
||
| ) |
Continue a data entry flow.
Definition at line 349 of file data_entry_flow.py.
| FlowHandler[_FlowContextT, _FlowResultT, _HandlerT] homeassistant.data_entry_flow.FlowManager.async_create_flow | ( | self, | |
| _HandlerT | handler_key, | ||
| *_FlowContextT | None | context = None, |
||
| dict[str, Any] | None | data = None |
||
| ) |
Create a flow for specified handler. Handler key is the domain of the component that we want to set up.
Definition at line 225 of file data_entry_flow.py.
| _FlowResultT homeassistant.data_entry_flow.FlowManager.async_finish_flow | ( | self, | |
| FlowHandler[_FlowContextT, _FlowResultT, _HandlerT] | flow, | ||
| _FlowResultT | result | ||
| ) |
Finish a data entry flow. This method is called when a flow step returns FlowResultType.ABORT or FlowResultType.CREATE_ENTRY.
Definition at line 238 of file data_entry_flow.py.
| _FlowResultT homeassistant.data_entry_flow.FlowManager.async_get | ( | self, | |
| str | flow_id | ||
| ) |
Return a flow in progress as a partial FlowResult.
Definition at line 257 of file data_entry_flow.py.
| _FlowResultT homeassistant.data_entry_flow.FlowManager.async_init | ( | self, | |
| _HandlerT | handler, | ||
| *_FlowContextT | None | context = None, |
||
| Any | data = None |
||
| ) |
Start a data entry flow.
Definition at line 322 of file data_entry_flow.py.
| None homeassistant.data_entry_flow.FlowManager.async_post_init | ( | self, | |
| FlowHandler[_FlowContextT, _FlowResultT, _HandlerT] | flow, | ||
| _FlowResultT | result | ||
| ) |
Entry has finished executing its first step asynchronously.
Definition at line 249 of file data_entry_flow.py.
| list[_FlowResultT] homeassistant.data_entry_flow.FlowManager.async_progress | ( | self, | |
| bool | include_uninitialized = False |
||
| ) |
Return the flows in progress as a partial FlowResult.
Definition at line 264 of file data_entry_flow.py.
| list[_FlowResultT] homeassistant.data_entry_flow.FlowManager.async_progress_by_handler | ( | self, | |
| _HandlerT | handler, | ||
| bool | include_uninitialized = False, |
||
| dict[str, Any] | None | match_context = None |
||
| ) |
Return the flows in progress by handler as a partial FlowResult. If match_context is specified, only return flows with a context that is a superset of match_context.
Definition at line 271 of file data_entry_flow.py.
| list[_FlowResultT] homeassistant.data_entry_flow.FlowManager.async_progress_by_init_data_type | ( | self, | |
| type | init_data_type, | ||
| Callable[[Any], bool] | matcher, | ||
| bool | include_uninitialized = False |
||
| ) |
Return flows in progress init matching by data type as a partial FlowResult.
Definition at line 288 of file data_entry_flow.py.
| homeassistant.data_entry_flow.FlowManager.hass |
Definition at line 212 of file data_entry_flow.py.