Skip to content

Commit

Permalink
feat: Add more description to config flow
Browse files Browse the repository at this point in the history
  • Loading branch information
alepee committed Nov 24, 2024
1 parent 1ee3d15 commit b75c798
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion custom_components/hitachi_yutaki/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
# Basic schema with essential options and advanced mode checkbox
BASE_SCHEMA = vol.Schema(
{
vol.Required(CONF_HOST, default=DEFAULT_HOST): str,
vol.Optional(CONF_NAME, default=DEFAULT_NAME): str,
vol.Required(CONF_HOST, default=DEFAULT_HOST): str,
vol.Required("show_advanced", default=False): bool,
}
)
Expand Down
10 changes: 3 additions & 7 deletions custom_components/hitachi_yutaki/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@
"step": {
"user": {
"data": {
"host": "IP address",
"port": "Port",
"name": "Name",
"show_advanced": "Show advanced settings",
"slave": "Modbus slave ID",
"scan_interval": "Scan interval (seconds)",
"dev_mode": "Developer mode (show all device types)"
"host": "IP address",
"show_advanced": "Show advanced settings"
},
"description": "Configure your Hitachi Yutaki heat pump via ATW-MBS-02 gateway.",
"title": "Hitachi Yutaki"
Expand All @@ -45,7 +41,7 @@
"port": "Port",
"slave": "Modbus slave ID",
"scan_interval": "Scan interval (seconds)",
"dev_mode": "Developer mode"
"dev_mode": "Developer mode (add all devices, even if they are not configured in the system)"
},
"description": "Advanced settings are intended for developers and users with custom Modbus configurations. Only modify these values if you know what you're doing.",
"title": "Advanced Settings"
Expand Down
10 changes: 3 additions & 7 deletions custom_components/hitachi_yutaki/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@
"step": {
"user": {
"data": {
"host": "Adresse IP",
"port": "Port",
"name": "Nom",
"show_advanced": "Afficher les paramètres avancés",
"slave": "ID esclave Modbus",
"scan_interval": "Intervalle de scan (secondes)",
"dev_mode": "Mode développeur (affiche tous les types de devices)"
"host": "Adresse IP",
"show_advanced": "Afficher les paramètres avancés"
},
"description": "Configurez votre pompe à chaleur Hitachi Yutaki via la passerelle ATW-MBS-02.",
"title": "Hitachi Yutaki"
Expand All @@ -45,7 +41,7 @@
"port": "Port",
"slave": "ID esclave Modbus",
"scan_interval": "Intervalle de scan (secondes)",
"dev_mode": "Mode développeur"
"dev_mode": "Mode développeur (ajoute tous les devices, même s'ils ne sont pas configurés dans le système)"
},
"description": "Les paramètres avancés sont destinés aux développeurs et aux utilisateurs ayant une configuration Modbus personnalisée. Ne modifiez ces valeurs que si vous savez ce que vous faites.",
"title": "Paramètres avancés"
Expand Down

0 comments on commit b75c798

Please sign in to comment.