Skip to content

Commit

Permalink
Add titles for config flow steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic committed Dec 23, 2023
1 parent 5ef96ab commit 9eeca71
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/plum_ecomax/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __init__(self) -> None:
self.modules_task: asyncio.Task | None = None
self.init_info: MutableMapping[str, Any] = {}

async def async_step_user(self, user_input=None) -> FlowResult:
async def async_step_user(self, _=None) -> FlowResult:
"""Handle initial step."""
return self.async_show_menu(
step_id="user",
Expand Down
3 changes: 3 additions & 0 deletions custom_components/plum_ecomax/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@
},
"step": {
"user": {
"title": "Choose a connection type",
"menu_options": {
"tcp": "Connect via network (TCP)",
"serial": "Connect via serial (RS-485)"
}
},
"serial": {
"title": "Serial settings",
"data": {
"device": "Device",
"baudrate": "Baudrate"
}
},
"tcp": {
"title": "Network settings",
"data": {
"host": "[%key:common::config_flow::data::host%]",
"port": "[%key:common::config_flow::data::port%]"
Expand Down
3 changes: 3 additions & 0 deletions custom_components/plum_ecomax/translations/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@
},
"step": {
"user": {
"title": "Choose a connection type",
"menu_options": {
"tcp": "Připojte se přes síť (TCP)",
"serial": "Připojte se přes sériový port (RS-485)"
}
},
"serial": {
"title": "Serial settings",
"data": {
"device": "Cesta",
"baudrate": "Přenosová rychlost"
}
},
"tcp": {
"title": "Network settings",
"data": {
"host": "IP adresa/Doména",
"port": "Port"
Expand Down
3 changes: 3 additions & 0 deletions custom_components/plum_ecomax/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@
},
"step": {
"user": {
"title": "Choose a connection type",
"menu_options": {
"tcp": "Connect via network (TCP)",
"serial": "Connect via serial (RS-485)"
}
},
"serial": {
"title": "Serial settings",
"data": {
"device": "Device",
"baudrate": "Baudrate"
}
},
"tcp": {
"title": "Network settings",
"data": {
"host": "Host",
"port": "Port"
Expand Down
3 changes: 3 additions & 0 deletions custom_components/plum_ecomax/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@
},
"step": {
"user": {
"title": "Choose a connection type",
"menu_options": {
"tcp": "Se connecter via le réseau (TCP)",
"serial": "Se connecter via le port série (RS-485)"
}
},
"serial": {
"title": "Serial settings",
"data": {
"device": "Chemin de l'appareil",
"baudrate": "Débit en bauds"
}
},
"tcp": {
"title": "Network settings",
"data": {
"host": "Hôte",
"port": "Port"
Expand Down
3 changes: 3 additions & 0 deletions custom_components/plum_ecomax/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@
},
"step": {
"user": {
"title": "Choose a connection type",
"menu_options": {
"tcp": "Połącz przez sieć (TCP)",
"serial": "Połącz przez port szeregowy (RS-485)"
}
},
"serial": {
"title": "Serial settings",
"data": {
"device": "Ścieżka urządzenia",
"baudrate": "Szybkość transmisji"
}
},
"tcp": {
"title": "Network settings",
"data": {
"host": "Host",
"port": "Port"
Expand Down
3 changes: 3 additions & 0 deletions custom_components/plum_ecomax/translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@
},
"step": {
"user": {
"title": "Choose a connection type",
"menu_options": {
"tcp": "Подключиться по сети (TCP)",
"serial": "Подключиться через последовательный порт (RS-485)"
}
},
"serial": {
"title": "Serial settings",
"data": {
"device": "Путь к устройству",
"baudrate": "Скорость передачи"
}
},
"tcp": {
"title": "Network settings",
"data": {
"host": "IP-адрес/домен",
"port": "Порт"
Expand Down
3 changes: 3 additions & 0 deletions custom_components/plum_ecomax/translations/ua.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@
},
"step": {
"user": {
"title": "Choose a connection type",
"menu_options": {
"tcp": "Підключитися через мережу (TCP)",
"serial": "Підключитись через послідовний порт (RS-485)"
}
},
"serial": {
"title": "Serial settings",
"data": {
"device": "Шлях пристрою",
"baudrate": "Швидкість передачі"
}
},
"tcp": {
"title": "Network settings",
"data": {
"host": "Хост",
"port": "Порт"
Expand Down

0 comments on commit 9eeca71

Please sign in to comment.