Classes | |
| class | _FlowType |
| class | RandomConfigFlowHandler |
Functions | |
| vol.Schema | _generate_schema (str domain, _FlowType flow_type) |
| None | _validate_unit (dict[str, Any] options) |
| str | choose_options_step (dict[str, Any] options) |
| Callable[[SchemaCommonFlowHandler, dict[str, Any]], Coroutine[Any, Any, dict[str, Any]],] | validate_user_input (str entity_type) |
Variables | |
| dictionary | CONFIG_FLOW |
| dictionary | OPTIONS_FLOW |
| list | RANDOM_TYPES |
Config flow for Random helper.
|
private |
Generate schema.
Definition at line 43 of file config_flow.py.
|
private |
Validate unit of measurement.
Definition at line 102 of file config_flow.py.
| str homeassistant.components.random.config_flow.choose_options_step | ( | dict[str, Any] | options | ) |
Return next step_id for options flow according to entity_type.
Definition at line 97 of file config_flow.py.
| Callable[ [SchemaCommonFlowHandler, dict[str, Any]], Coroutine[Any, Any, dict[str, Any]], ] homeassistant.components.random.config_flow.validate_user_input | ( | str | entity_type | ) |
Do post validation of user input. For sensors: Validate unit of measurement.
Definition at line 124 of file config_flow.py.
| dictionary homeassistant.components.random.config_flow.CONFIG_FLOW |
Definition at line 152 of file config_flow.py.
| dictionary homeassistant.components.random.config_flow.OPTIONS_FLOW |
Definition at line 165 of file config_flow.py.
| list homeassistant.components.random.config_flow.RANDOM_TYPES |
Definition at line 147 of file config_flow.py.