Skip to content

Commit

Permalink
Update backend to v0.5.4 add languages (#16)
Browse files Browse the repository at this point in the history
* Update backend to v0.5.4 add languages

* Add new lines at the end of json files

* New line to version file

* Update requirements

* Add patch for _async_get_domain
  • Loading branch information
jbouwh committed Sep 5, 2022
1 parent 4ad5806 commit 7a0e530
Show file tree
Hide file tree
Showing 12 changed files with 195 additions and 7 deletions.
4 changes: 2 additions & 2 deletions custom_components/elro_connects/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"config_flow": true,
"documentation": "https://github.com/jbouwh/ha-elro-connects",
"issue_tracker": "https://github.com/jbouwh/ha-elro-connects/issues",
"requirements": ["lib-elro-connects==0.5.3"],
"requirements": ["lib-elro-connects==0.5.4"],
"codeowners": ["@jbouwh"],
"iot_class": "local_polling",
"version": "0.1.10"
"version": "0.1.11"
}
37 changes: 37 additions & 0 deletions custom_components/elro_connects/translations/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"config": {
"abort": {
"already_configured": "Gerät ist bereits konfiguriert"
},
"error": {
"cannot_connect": "Verbindung nicht möglich",
"unknown": "Unerwarteter Fehler"
},
"step": {
"user": {
"data": {
"host": "Hostname oder IP-Adresse",
"port": "IP-Port",
"username": "Nutzername",
"password": "Passwort",
"connector_id": "Konnektor-ID",
"api_key": "API-Schlüssel"
}
}
}
},
"options": {
"step": {
"init": {
"data": {
"host": "Hostname oder IP-Adresse",
"port": "IP-Port",
"username": "Nutzername",
"password": "Passwort",
"connector_id": "Konnektor-ID",
"api_key": "API-Schlüssel"
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/elro_connects/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
}
}
}
}
}
37 changes: 37 additions & 0 deletions custom_components/elro_connects/translations/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"config": {
"abort": {
"already_configured": "El dispositivo ya está configurado"
},
"error": {
"cannot_connect": "Error al conectar",
"unknown": "Error inesperado"
},
"step": {
"user": {
"data": {
"host": "Nombre de host o la dirección IP",
"port": "Puerto",
"username": "Nombre de usuario",
"password": "Clave",
"connector_id": "Connector ID",
"api_key": "Clave API"
}
}
}
},
"options": {
"step": {
"init": {
"data": {
"host": "Nombre de host o la dirección IP",
"port": "Puerto",
"username": "Nombre de usuario",
"password": "Clave",
"connector_id": "Connector ID",
"api_key": "Clave API"
}
}
}
}
}
37 changes: 37 additions & 0 deletions custom_components/elro_connects/translations/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"config": {
"abort": {
"already_configured": "L'appareil est déjà configuré"
},
"error": {
"cannot_connect": "Échec de connexion",
"unknown": "Erreur inattendue"
},
"step": {
"user": {
"data": {
"host": "Nom d'hôte ou adresse IP",
"port": "Port",
"username": "Nom d'utilisateur",
"password": "Mot de passe",
"connector_id": "Connecteur ID",
"api_key": "Clé API"
}
}
}
},
"options": {
"step": {
"init": {
"data": {
"host": "Nom d'hôte ou adresse IP",
"port": "Port",
"username": "Nom d'utilisateur",
"password": "Mot de passe",
"connector_id": "Connecteur ID",
"api_key": "Clé API"
}
}
}
}
}
2 changes: 1 addition & 1 deletion custom_components/elro_connects/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
}
}
}
}
}
37 changes: 37 additions & 0 deletions custom_components/elro_connects/translations/pt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"config": {
"abort": {
"already_configured": "O dispositivo já está configurado"
},
"error": {
"cannot_connect": "Falhou ao conectar",
"unknown": "Erro inesperado"
},
"step": {
"user": {
"data": {
"host": "Nome do host ou endereço IP",
"port": "Porta",
"username": "Nome de usuário",
"password": "Senha",
"connector_id": "ID do conector",
"api_key": "Chave API"
}
}
}
},
"options": {
"step": {
"init": {
"data": {
"host": "Nome do host ou endereço IP",
"port": "Porta",
"username": "Nome de usuário",
"password": "Senha",
"connector_id": "ID do conector",
"api_key": "Chave API"
}
}
}
}
}
37 changes: 37 additions & 0 deletions custom_components/elro_connects/translations/uk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"config": {
"abort": {
"already_configured": "\u041f\u0440\u0438\u0441\u0442\u0440\u0456\u0439\u0020\u0443\u0436\u0435\u0020\u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0430\u043d\u043e"
},
"error": {
"cannot_connect": "\u041d\u0435\u0020\u0432\u0434\u0430\u043b\u043e\u0441\u044f\u0020\u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0438\u0441\u044f",
"unknown": "\u041d\u0435\u043e\u0447\u0456\u043a\u0443\u0432\u0430\u043d\u0430\u0020\u043f\u043e\u043c\u0438\u043b\u043a\u0430"
},
"step": {
"user": {
"data": {
"host": "\u0406\u043c\u0027\u044f\u0020\u0445\u043e\u0441\u0442\u0430\u0020\u0430\u0431\u043e\u0020\u0049\u0050\u002d\u0430\u0434\u0440\u0435\u0441\u0430",
"port": "\u041f\u043e\u0440\u0442",
"username": "\u0406\u043c\u0027\u044f\u0020\u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430",
"password": "\u041f\u0430\u0440\u043e\u043b\u044c",
"connector_id": "\u0420\u043e\u0437\u0027\u0454\u043c\u0020\u0049\u0044",
"api_key": "\u041a\u043b\u044e\u0447\u0020\u0041\u0050\u0049"
}
}
}
},
"options": {
"step": {
"init": {
"data": {
"host": "\u0406\u043c\u0027\u044f\u0020\u0445\u043e\u0441\u0442\u0430\u0020\u0430\u0431\u043e\u0020\u0049\u0050\u002d\u0430\u0434\u0440\u0435\u0441\u0430",
"port": "\u041f\u043e\u0440\u0442",
"username": "\u0406\u043c\u0027\u044f\u0020\u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430",
"password": "\u041f\u0430\u0440\u043e\u043b\u044c",
"connector_id": "\u0420\u043e\u0437\u0027\u0454\u043c\u0020\u0049\u0044",
"api_key": "\u041a\u043b\u044e\u0447\u0020\u0041\u0050\u0049"
}
}
}
}
}
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pre-commit
lib-elro-connects==0.5.3
lib-elro-connects==0.5.4
homeassistant==2022.8.0
pytest-homeassistant-custom-component
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ fnvhash==0.1.0

lru-dict==1.1.8

lib-elro-connects==0.5.3
lib-elro-connects==0.5.4

pytest-homeassistant-custom-component==0.11.10
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def mock_k1_api(hass: HomeAssistant) -> dict[AsyncMock]:
) as mock_configure, patch(
"elro.api.K1.async_process_command",
AsyncMock(return_value={}),
) as mock_result, patch(
"elro.auth.ElroConnectsSession._async_get_domain",
AsyncMock(return_value="hekr.me"),
) as mock_result:
yield {
"connect": mock_connect,
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.10
0.1.11

0 comments on commit 7a0e530

Please sign in to comment.