Skip to content

Commit

Permalink
Fix Translation Keys /add DE translation
Browse files Browse the repository at this point in the history
  • Loading branch information
SukramJ committed Dec 16, 2021
1 parent 58f7710 commit 36922d0
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 25 deletions.
6 changes: 5 additions & 1 deletion custom_components/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
Version 0.0.22 (2021-12-16)
Version 0.0.22.2 (2021-12-16)
- Add DE translation
- Update NL translation

Version 0.0.22.1 (2021-12-16)
- Fix resolve names for all given ports incl. tls (update hahomematic)
- Rename attributes to match eQ-3 naming
- Don't use title() for instance_name
Expand Down
10 changes: 4 additions & 6 deletions custom_components/hahm/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
ATTR_USERNAME,
ATTR_VERIFY_TLS,
DEFAULT_TLS,
IP_ANY_V4,
PORT_ANY,
)
import voluptuous as vol
from voluptuous.schema_builder import Schema
Expand Down Expand Up @@ -70,10 +68,10 @@
{
vol.Required(ATTR_INSTANCE_NAME): str,
vol.Required(ATTR_HOST): str,
vol.Optional(ATTR_USERNAME, default=""): str,
vol.Optional(ATTR_PASSWORD, default=""): str,
vol.Optional(ATTR_CALLBACK_HOST, default=IP_ANY_V4): str,
vol.Optional(ATTR_CALLBACK_PORT, default=PORT_ANY): int,
vol.Optional(ATTR_USERNAME): str,
vol.Optional(ATTR_PASSWORD): str,
vol.Optional(ATTR_CALLBACK_HOST): str,
vol.Optional(ATTR_CALLBACK_PORT): int,
vol.Optional(ATTR_TLS, default=DEFAULT_TLS): bool,
vol.Optional(ATTR_VERIFY_TLS, default=False): bool,
vol.Optional(ATTR_JSON_PORT): int,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hahm/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"dependencies": [],
"codeowners": ["@danielperna84", "@SukramJ"],
"iot_class": "local_push",
"version": "0.0.22.1"
"version": "0.0.22.2"
}
16 changes: 8 additions & 8 deletions custom_components/hahm/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"description": "Please fill the required fields.",
"data": {
"instance_name": "Integration instance name",
"host": "CCU Hostname",
"host": "CCU Hostname/IP-Address",
"username": "CCU Username",
"password": "CCU Password",
"callback_ip": "Callback IP",
"callback_host": "Callback Hostname/IP-Address",
"callback_port": "Callback XML-RPC Port",
"tls": "Use TLS",
"verify_tls": "Verify TLS connection",
"json_port": "Remote JSON-RPC Port",
"json_tls": "Use TLS for JSON"
"tls": "use TLS",
"verify_tls": "verify TLS connection",
"json_port": "JSON-RPC Port",
"json_tls": "use TLS for JSON"
}
},
"interface": {
Expand All @@ -38,8 +38,8 @@
"step": {
"hahm_devices": {
"data": {
"enable_virtual_channels": "Enable virtual channels",
"enable_sensors_for_system_variables": "Enable sensors for system variables"
"enable_virtual_channels": "enable virtual channels",
"enable_sensors_for_system_variables": "enable sensors for system variables"
},
"description": "Configure visibility of hahm device types",
"title": "Hahm options"
Expand Down
61 changes: 61 additions & 0 deletions custom_components/hahm/translations/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"title": "Home-Assistant Integration für Homematic (IP)",
"config": {
"step": {
"user": {
"title": "Home-Assistant Integration für Homematic (IP)",
"description": "Bitte Pflichtfelder ausfüllen",
"data": {
"instance_name": "Instanzname der Integration",
"host": "CCU Hostname/IP-Adresse",
"username": "CCU Benutzername",
"password": "CCU Passwort",
"callback_host": "Callback Hostname/IP-Adresse",
"callback_port": "Callback XML-RPC Port",
"tls": "verwende TLS",
"verify_tls": "TLS Verbindung überprüfen",
"json_port": "JSON-RPC Port",
"json_tls": "verwende TLS für JSON"
}
},
"interface": {
"description": "Konfiguration der CCU Schnittstellen",
"data": {
"hmip_rf_enabled": "aktiviere Homematic IP",
"hmip_rf_port": "HmIP-RF Port",
"bidos_rf_enabled": "aktiviere Homematic (Bidcos-RF)",
"bidos_rf_port": "HM-RF Port",
"virtual_devices_enabled": "aktiviere Heizgruppen",
"virtual_devices_port": "Gruppen Port",
"virtual_devices_path": "Gruppen Path",
"hs485d_enabled": "aktiviere HS485D (HM-Wired)",
"hs485d_port": "HS485D Port"
}
}
}
},
"options": {
"step": {
"hahm_devices": {
"data": {
"enable_virtual_channels": "aktiviere virtuelle Gerätekanäle",
"enable_sensors_for_system_variables": "aktiviere Sensoren für Systemvariablen"
},
"description": "Konfiguriere die Sichtbarkeit von HAHM Geräten",
"title": "HAHM Optionen"
}
}
},
"device_automation": {
"trigger_type": {
"acoustic_alarm_active": "Akustischer Alarm aktiv",
"alarmstate": "Alarmstatus",
"dew_point_alarm": "Taupunkt-Alarm",
"humidity_alarm": "Luftfeuchtigkeit-Alarm",
"moisture_detected": "Feuchtigkeit erkannt",
"optical_alarm_active": "Optischer Alarm aktiv",
"smoke_detector_alarm_status": "Rauschmelder-Alarm",
"waterlevel_detected": "Wasserstand erkannt"
}
}
}
16 changes: 8 additions & 8 deletions custom_components/hahm/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"description": "Please fill the required fields.",
"data": {
"instance_name": "Integration instance name",
"host": "CCU Hostname",
"host": "CCU Hostname/IP-Address",
"username": "CCU Username",
"password": "CCU Password",
"callback_ip": "Callback IP",
"callback_host": "Callback Hostname/IP-Address",
"callback_port": "Callback XML-RPC Port",
"tls": "Use TLS",
"verify_tls": "Verify TLS connection",
"json_port": "Remote JSON-RPC Port",
"json_tls": "Use TLS for JSON"
"tls": "use TLS",
"verify_tls": "verify TLS connection",
"json_port": "JSON-RPC Port",
"json_tls": "use TLS for JSON"
}
},
"interface": {
Expand All @@ -38,8 +38,8 @@
"step": {
"hahm_devices": {
"data": {
"enable_virtual_channels": "Enable virtual channels",
"enable_sensors_for_system_variables": "Enable sensors for system variables"
"enable_virtual_channels": "enable virtual channels",
"enable_sensors_for_system_variables": "enable sensors for system variables"
},
"description": "Configure visibility of hahm device types",
"title": "Hahm options"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hahm/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"host": "CCU Hostname",
"username": "CCU Gebruikersnaam",
"password": "CCU Wachtwoord",
"callback_ip": "Callback IP",
"callback_host": "Callback Hostname/IP",
"callback_port": "Callback XML-RPC poort",
"tls": "Gebruik TLS",
"verify_tls": "Verifier TLS connection",
Expand Down

0 comments on commit 36922d0

Please sign in to comment.