Classes | |
| class | TemplateConfigFlowHandler |
Functions | |
| None | _validate_state_class (dict[str, Any] options) |
| None | _validate_unit (dict[str, Any] options) |
| str | choose_options_step (dict[str, Any] options) |
| vol.Schema | generate_schema (str domain, str flow_type) |
| Callable[[SchemaCommonFlowHandler, dict[str, Any]], Coroutine[Any, Any, dict[str, Any]],] | validate_user_input (str template_type) |
| None | ws_start_preview (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg) |
Variables | |
| dictionary | CONFIG_FLOW |
| config_schema = partial(generate_schema, flow_type="config") | |
| dictionary | OPTIONS_FLOW |
| options_schema = partial(generate_schema, flow_type="options") | |
| list | TEMPLATE_TYPES |
Config flow for the Template integration.
|
private |
Validate state class.
Definition at line 253 of file config_flow.py.
|
private |
Validate unit of measurement.
Definition at line 231 of file config_flow.py.
| str homeassistant.components.template.config_flow.choose_options_step | ( | dict[str, Any] | options | ) |
Return next step_id for options flow according to template_type.
Definition at line 226 of file config_flow.py.
| vol.Schema homeassistant.components.template.config_flow.generate_schema | ( | str | domain, |
| str | flow_type | ||
| ) |
Generate schema.
Definition at line 76 of file config_flow.py.
| Callable[ [SchemaCommonFlowHandler, dict[str, Any]], Coroutine[Any, Any, dict[str, Any]], ] homeassistant.components.template.config_flow.validate_user_input | ( | str | template_type | ) |
Do post validation of user input. For sensors: Validate unit of measurement. For all domaines: Set template type.
Definition at line 278 of file config_flow.py.
| None homeassistant.components.template.config_flow.ws_start_preview | ( | HomeAssistant | hass, |
| websocket_api.ActiveConnection | connection, | ||
| dict[str, Any] | msg | ||
| ) |
Generate a preview.
Definition at line 432 of file config_flow.py.
| dictionary homeassistant.components.template.config_flow.CONFIG_FLOW |
Definition at line 314 of file config_flow.py.
| homeassistant.components.template.config_flow.config_schema = partial(generate_schema, flow_type="config") |
Definition at line 223 of file config_flow.py.
| dictionary homeassistant.components.template.config_flow.OPTIONS_FLOW |
Definition at line 355 of file config_flow.py.
| homeassistant.components.template.config_flow.options_schema = partial(generate_schema, flow_type="options") |
Definition at line 221 of file config_flow.py.
| list homeassistant.components.template.config_flow.TEMPLATE_TYPES |
Definition at line 303 of file config_flow.py.