Classes | |
| class | MySensorsConfigFlowHandler |
Functions | |
| dict | _get_schema_common (dict[str, str] user_input) |
| bool | _is_same_device (ConfGatewayType gw_type, dict[str, Any] user_input, ConfigEntry entry) |
| dict[str, str] | _validate_version (str version) |
| str | is_persistence_file (str value) |
Variables | |
| _PORT_SELECTOR | |
| int | DEFAULT_BAUD_RATE = 115200 |
| int | DEFAULT_TCP_PORT = 5003 |
| string | DEFAULT_VERSION = "1.4" |
Config flow for MySensors.
|
private |
Create a schema with options common to all gateway types.
Definition at line 65 of file config_flow.py.
|
private |
Check if another ConfigDevice is actually the same as user_input. This function only compares addresses and tcp ports, so it is possible to fool it with tricks like port forwarding.
Definition at line 97 of file config_flow.py.
|
private |
Validate a version string from the user.
Definition at line 78 of file config_flow.py.
| str homeassistant.components.mysensors.config_flow.is_persistence_file | ( | str | value | ) |
Validate that persistence file path ends in either .pickle or .json.
Definition at line 58 of file config_flow.py.
|
private |
Definition at line 48 of file config_flow.py.
| int homeassistant.components.mysensors.config_flow.DEFAULT_BAUD_RATE = 115200 |
Definition at line 44 of file config_flow.py.
| int homeassistant.components.mysensors.config_flow.DEFAULT_TCP_PORT = 5003 |
Definition at line 45 of file config_flow.py.
| string homeassistant.components.mysensors.config_flow.DEFAULT_VERSION = "1.4" |
Definition at line 46 of file config_flow.py.