Classes | |
| class | Elkm1ConfigFlow |
| class | InvalidAuth |
Functions | |
| str | _address_from_discovery (ElkSystem device) |
| str | _make_url_from_data (dict[str, str] data) |
| dict[str, str] | _placeholders_from_device (ElkSystem device) |
| dict[str, str] | validate_input (dict[str, str] data, str|None mac) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| list | ALL_PROTOCOLS = [*SECURE_PROTOCOLS, "non-secure", "serial"] |
| string | CONF_DEVICE = "device" |
| CONF_PASSWORD | |
| CONF_USERNAME | |
| default | |
| string | DEFAULT_NON_SECURE_PROTOCOL = "non-secure" |
| string | DEFAULT_SECURE_PROTOCOL = "secure" |
| int | NON_SECURE_PORT = 2101 |
| dictionary | PORT_PROTOCOL_MAP |
| dictionary | PROTOCOL_MAP |
| int | SECURE_PORT = 2601 |
| list | SECURE_PROTOCOLS = ["secure", "TLS 1.2"] |
| dictionary | STANDARD_PORTS = {NON_SECURE_PORT, SECURE_PORT} |
| int | VALIDATE_TIMEOUT = 35 |
| VolDictType | |
Config flow for Elk-M1 Control integration.
|
private |
Append the port only if its non-standard.
Definition at line 107 of file config_flow.py.
|
private |
Definition at line 114 of file config_flow.py.
|
private |
Definition at line 123 of file config_flow.py.
| dict[str, str] homeassistant.components.elkm1.config_flow.validate_input | ( | dict[str, str] | data, |
| str | None | mac | ||
| ) |
Validate the user input allows us to connect. Data has the keys from DATA_SCHEMA with values provided by the user.
Definition at line 71 of file config_flow.py.
|
private |
Definition at line 43 of file config_flow.py.
| list homeassistant.components.elkm1.config_flow.ALL_PROTOCOLS = [*SECURE_PROTOCOLS, "non-secure", "serial"] |
Definition at line 61 of file config_flow.py.
| string homeassistant.components.elkm1.config_flow.CONF_DEVICE = "device" |
Definition at line 37 of file config_flow.py.
| homeassistant.components.elkm1.config_flow.CONF_PASSWORD |
Definition at line 57 of file config_flow.py.
| homeassistant.components.elkm1.config_flow.CONF_USERNAME |
Definition at line 56 of file config_flow.py.
| homeassistant.components.elkm1.config_flow.default |
Definition at line 56 of file config_flow.py.
| string homeassistant.components.elkm1.config_flow.DEFAULT_NON_SECURE_PROTOCOL = "non-secure" |
Definition at line 63 of file config_flow.py.
| string homeassistant.components.elkm1.config_flow.DEFAULT_SECURE_PROTOCOL = "secure" |
Definition at line 62 of file config_flow.py.
| int homeassistant.components.elkm1.config_flow.NON_SECURE_PORT = 2101 |
Definition at line 39 of file config_flow.py.
| dictionary homeassistant.components.elkm1.config_flow.PORT_PROTOCOL_MAP |
Definition at line 65 of file config_flow.py.
| dictionary homeassistant.components.elkm1.config_flow.PROTOCOL_MAP |
Definition at line 45 of file config_flow.py.
| int homeassistant.components.elkm1.config_flow.SECURE_PORT = 2601 |
Definition at line 40 of file config_flow.py.
| list homeassistant.components.elkm1.config_flow.SECURE_PROTOCOLS = ["secure", "TLS 1.2"] |
Definition at line 60 of file config_flow.py.
| dictionary homeassistant.components.elkm1.config_flow.STANDARD_PORTS = {NON_SECURE_PORT, SECURE_PORT} |
Definition at line 41 of file config_flow.py.
| int homeassistant.components.elkm1.config_flow.VALIDATE_TIMEOUT = 35 |
Definition at line 53 of file config_flow.py.
| homeassistant.components.elkm1.config_flow.VolDictType |
Definition at line 55 of file config_flow.py.