Public Member Functions | |
| vol.Schema | add_suggested_values_to_schema (self, vol.Schema data_schema, Mapping[str, Any]|None suggested_values) |
| _FlowResultT | async_abort (self, *str reason, Mapping[str, str]|None description_placeholders=None) |
| None | async_cancel_progress_task (self) |
| _FlowResultT | async_create_entry (self, *str|None title=None, Mapping[str, Any] data, str|None description=None, Mapping[str, str]|None description_placeholders=None) |
| _FlowResultT | async_external_step (self, *str|None step_id=None, str url, Mapping[str, str]|None description_placeholders=None) |
| _FlowResultT | async_external_step_done (self, *str next_step_id) |
| asyncio.Task[Any]|None | async_get_progress_task (self) |
| None | async_remove (self) |
| None | async_set_progress_task (self, asyncio.Task[Any] progress_task) |
| _FlowResultT | async_show_form (self, *str|None step_id=None, vol.Schema|None data_schema=None, dict[str, str]|None errors=None, Mapping[str, str]|None description_placeholders=None, bool|None last_step=None, str|None preview=None) |
| _FlowResultT | async_show_menu (self, *str|None step_id=None, Container[str] menu_options, Mapping[str, str]|None description_placeholders=None) |
| _FlowResultT | async_show_progress (self, *str|None step_id=None, str progress_action, Mapping[str, str]|None description_placeholders=None, asyncio.Task[Any]|None progress_task=None) |
| _FlowResultT | async_show_progress_done (self, *str next_step_id) |
| bool | show_advanced_options (self) |
| str|None | source (self) |
Static Public Member Functions | |
| None | async_setup_preview (HomeAssistant hass) |
Public Attributes | |
| deprecated_show_progress | |
Static Public Attributes | |
| Any | |
| bool | deprecated_show_progress = False |
| HomeAssistant | |
| string | init_step = "init" |
| int | MINOR_VERSION = 1 |
| None | |
| str | |
| int | VERSION = 1 |
Private Attributes | |
| __no_progress_task_reported | |
| __progress_task | |
Static Private Attributes | |
| bool | __no_progress_task_reported = False |
| _FlowContextT | |
| _HandlerT | |
Handle a data entry flow.
Definition at line 627 of file data_entry_flow.py.
| vol.Schema homeassistant.data_entry_flow.FlowHandler.add_suggested_values_to_schema | ( | self, | |
| vol.Schema | data_schema, | ||
| Mapping[str, Any] | None | suggested_values | ||
| ) |
Make a copy of the schema, populated with suggested values. For each schema marker matching items in `suggested_values`, the `suggested_value` will be set. The existing `suggested_value` will be left untouched if there is no matching item.
Definition at line 667 of file data_entry_flow.py.
| _FlowResultT homeassistant.data_entry_flow.FlowHandler.async_abort | ( | self, | |
| *str | reason, | ||
| Mapping[str, str] | None | description_placeholders = None |
||
| ) |
Abort the flow.
Reimplemented in homeassistant.config_entries.ConfigFlow.
Definition at line 752 of file data_entry_flow.py.
| None homeassistant.data_entry_flow.FlowHandler.async_cancel_progress_task | ( | self | ) |
Cancel in progress task.
Definition at line 887 of file data_entry_flow.py.
| _FlowResultT homeassistant.data_entry_flow.FlowHandler.async_create_entry | ( | self, | |
| *str | None | title = None, |
||
| Mapping[str, Any] | data, | ||
| str | None | description = None, |
||
| Mapping[str, str] | None | description_placeholders = None |
||
| ) |
Finish flow.
Definition at line 729 of file data_entry_flow.py.
| _FlowResultT homeassistant.data_entry_flow.FlowHandler.async_external_step | ( | self, | |
| *str | None | step_id = None, |
||
| str | url, | ||
| Mapping[str, str] | None | description_placeholders = None |
||
| ) |
Return the definition of an external step for the user to take. The step_id parameter is deprecated and will be removed in a future release.
Definition at line 768 of file data_entry_flow.py.
| _FlowResultT homeassistant.data_entry_flow.FlowHandler.async_external_step_done | ( | self, | |
| *str | next_step_id | ||
| ) |
Return the definition of an external step for the user to take.
Definition at line 791 of file data_entry_flow.py.
Get in progress task.
Definition at line 894 of file data_entry_flow.py.
| None homeassistant.data_entry_flow.FlowHandler.async_remove | ( | self | ) |
Notification that the flow has been removed.
Reimplemented in homeassistant.components.zha.config_flow.ZhaOptionsFlowHandler, homeassistant.components.octoprint.config_flow.OctoPrintConfigFlow, homeassistant.components.lg_netcast.config_flow.LGNetCast, and homeassistant.components.improv_ble.config_flow.ImprovBLEConfigFlow.
Definition at line 879 of file data_entry_flow.py.
| None homeassistant.data_entry_flow.FlowHandler.async_set_progress_task | ( | self, | |
| asyncio.Task[Any] | progress_task | ||
| ) |
Set in progress task.
Definition at line 899 of file data_entry_flow.py.
|
static |
Set up preview.
Reimplemented in homeassistant.helpers.schema_config_entry_flow.SchemaConfigFlowHandler, homeassistant.components.time_date.config_flow.TimeDateConfigFlowHandler, homeassistant.components.threshold.config_flow.ConfigFlowHandler, homeassistant.components.template.config_flow.TemplateConfigFlowHandler, homeassistant.components.statistics.config_flow.StatisticsConfigFlowHandler, homeassistant.components.mold_indicator.config_flow.MoldIndicatorConfigFlowHandler, and homeassistant.components.group.config_flow.GroupConfigFlowHandler.
Definition at line 883 of file data_entry_flow.py.
| _FlowResultT homeassistant.data_entry_flow.FlowHandler.async_show_form | ( | self, | |
| *str | None | step_id = None, |
||
| vol.Schema | None | data_schema = None, |
||
| dict[str, str] | None | errors = None, |
||
| Mapping[str, str] | None | description_placeholders = None, |
||
| bool | None | last_step = None, |
||
| str | None | preview = None |
||
| ) |
Return the definition of a form to gather user input. The step_id parameter is deprecated and will be removed in a future release.
Reimplemented in homeassistant.config_entries.ConfigFlow.
Definition at line 700 of file data_entry_flow.py.
| _FlowResultT homeassistant.data_entry_flow.FlowHandler.async_show_menu | ( | self, | |
| *str | None | step_id = None, |
||
| Container[str] | menu_options, | ||
| Mapping[str, str] | None | description_placeholders = None |
||
| ) |
Show a navigation menu to the user. Options dict maps step_id => i18n label The step_id parameter is deprecated and will be removed in a future release.
Definition at line 854 of file data_entry_flow.py.
| _FlowResultT homeassistant.data_entry_flow.FlowHandler.async_show_progress | ( | self, | |
| *str | None | step_id = None, |
||
| str | progress_action, | ||
| Mapping[str, str] | None | description_placeholders = None, |
||
| asyncio.Task[Any] | None | progress_task = None |
||
| ) |
Show a progress message to the user, without user input allowed. The step_id parameter is deprecated and will be removed in a future release.
Definition at line 801 of file data_entry_flow.py.
| _FlowResultT homeassistant.data_entry_flow.FlowHandler.async_show_progress_done | ( | self, | |
| *str | next_step_id | ||
| ) |
Mark the progress done.
Definition at line 844 of file data_entry_flow.py.
| bool homeassistant.data_entry_flow.FlowHandler.show_advanced_options | ( | self | ) |
If we should show advanced options.
Definition at line 663 of file data_entry_flow.py.
Source that initialized the flow.
Definition at line 658 of file data_entry_flow.py.
|
staticprivate |
Definition at line 654 of file data_entry_flow.py.
|
private |
Definition at line 814 of file data_entry_flow.py.
|
private |
Definition at line 891 of file data_entry_flow.py.
|
staticprivate |
Definition at line 641 of file data_entry_flow.py.
|
staticprivate |
Definition at line 639 of file data_entry_flow.py.
|
static |
Definition at line 647 of file data_entry_flow.py.
|
static |
Definition at line 655 of file data_entry_flow.py.
| homeassistant.data_entry_flow.FlowHandler.deprecated_show_progress |
Definition at line 829 of file data_entry_flow.py.
|
static |
Definition at line 638 of file data_entry_flow.py.
|
static |
Definition at line 644 of file data_entry_flow.py.
|
static |
Definition at line 651 of file data_entry_flow.py.
|
static |
Definition at line 633 of file data_entry_flow.py.
|
static |
Definition at line 637 of file data_entry_flow.py.
|
static |
Definition at line 650 of file data_entry_flow.py.