Classes | |
| class | NutConfigFlow |
| class | OptionsFlowHandler |
Functions | |
| vol.Schema | _base_schema (dict[str, Any] nut_config) |
| str | _format_host_port_alias (Mapping[str, Any] user_input) |
| vol.Schema | _ups_schema (dict[str, str] ups_list) |
| dict[str, Any] | validate_input (HomeAssistant hass, dict[str, Any] data) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| dictionary | AUTH_SCHEMA = {vol.Optional(CONF_USERNAME): str, vol.Optional(CONF_PASSWORD): str} |
Config flow for Network UPS Tools (NUT) integration.
|
private |
Generate base schema.
Definition at line 39 of file config_flow.py.
|
private |
Format a host, port, and alias so it can be used for comparison or display.
Definition at line 75 of file config_flow.py.
|
private |
UPS selection schema.
Definition at line 49 of file config_flow.py.
| dict[str, Any] homeassistant.components.nut.config_flow.validate_input | ( | HomeAssistant | hass, |
| dict[str, Any] | data | ||
| ) |
Validate the user input allows us to connect. Data has the keys from _base_schema with values provided by the user.
Definition at line 54 of file config_flow.py.
|
private |
Definition at line 34 of file config_flow.py.
| dictionary homeassistant.components.nut.config_flow.AUTH_SCHEMA = {vol.Optional(CONF_USERNAME): str, vol.Optional(CONF_PASSWORD): str} |
Definition at line 36 of file config_flow.py.