Skip to content

Commit

Permalink
feat: Better Modbus Slave option readability
Browse files Browse the repository at this point in the history
  • Loading branch information
alepee committed Nov 24, 2024
1 parent b75c798 commit a49069e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion custom_components/hitachi_yutaki/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{
vol.Required(CONF_PORT, default=DEFAULT_PORT): cv.port,
vol.Required(CONF_SLAVE, default=DEFAULT_SLAVE): vol.All(
cv.positive_int, vol.Range(min=1, max=247)
vol.Coerce(int), vol.Range(min=1, max=247)
),
vol.Optional(
CONF_SCAN_INTERVAL, default=DEFAULT_SCAN_INTERVAL
Expand All @@ -58,6 +58,7 @@ class HitachiYutakiConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
"""Handle a config flow for Hitachi Yutaki."""

VERSION = 1
MINOR_VERSION = 1

def __init__(self):
"""Initialize the config flow."""
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hitachi_yutaki/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"host": "IP address",
"show_advanced": "Show advanced settings"
},
"description": "Configure your Hitachi Yutaki heat pump via ATW-MBS-02 gateway.",
"description": "Configure your Hitachi Yutaki heat pump via the Modbus TCP/IP interface exposed by the ATW-MBS-02 gateway. Important: your heat pump must be configured in 'Air' control mode to allow the gateway full read and write access to the heat pump control registers.",
"title": "Hitachi Yutaki"
},
"advanced": {
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hitachi_yutaki/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"host": "Adresse IP",
"show_advanced": "Afficher les paramètres avancés"
},
"description": "Configurez votre pompe à chaleur Hitachi Yutaki via la passerelle ATW-MBS-02.",
"description": "Configurez votre pompe à chaleur Hitachi Yutaki via l'interface Modbus TCP/IP exposée par la passerelle ATW-MBS-02. Important : votre pompe à chaleur doit être configurée en mode de contrôle 'Air' pour permettre à la passerelle d'avoir un accès complet en lecture et écriture aux registres de contrôle de la pompe à chaleur.",
"title": "Hitachi Yutaki"
},
"advanced": {
Expand Down

0 comments on commit a49069e

Please sign in to comment.