Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #400 from Thomas55555/fix-translation-key
Browse files Browse the repository at this point in the history
fix translation key
  • Loading branch information
Thomas55555 authored Apr 3, 2023
2 parents 9652936 + 6241172 commit f60fc21
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions custom_components/husqvarna_automower/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def problem_list() -> list:
entity_category=EntityCategory.DIAGNOSTIC,
device_class=SensorDeviceClass.ENUM,
options=["main_area", "secondary_area", "home", "demo", "unknown"],
translation_key="mode list",
translation_key="mode_list",
value_fn=lambda data: data["mower"]["mode"].lower(),
),
AutomowerSensorEntityDescription(
Expand All @@ -220,7 +220,7 @@ def problem_list() -> list:
entity_category=EntityCategory.DIAGNOSTIC,
device_class=SensorDeviceClass.ENUM,
options=problem_list(),
translation_key="problem list",
translation_key="problem_list",
value_fn=lambda data: get_problem(data).lower(),
),
AutomowerSensorEntityDescription(
Expand Down
4 changes: 2 additions & 2 deletions custom_components/husqvarna_automower/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"entity": {
"sensor": {
"problem list": {
"problem_list": {
"state": {
"off": "Off",
"unknwon": "Unknown",
Expand All @@ -60,7 +60,7 @@
"frost": "Frost"
}
},
"mode list":{
"mode_list":{
"state": {
"main_area": "Main area",
"secondary_area": "Secondary area",
Expand Down
4 changes: 2 additions & 2 deletions custom_components/husqvarna_automower/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"entity": {
"sensor": {
"problem list": {
"problem_list": {
"state": {
"off": "Aus",
"unknwon": "Unbekannt",
Expand All @@ -35,7 +35,7 @@
"frost": "Frost"
}
},
"mode list":{
"mode_list":{
"state": {
"main_area": "Hauptbereich",
"secondary_area": "Zweitbereich",
Expand Down
4 changes: 2 additions & 2 deletions custom_components/husqvarna_automower/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
},
"entity": {
"sensor": {
"problem list": {
"problem_list": {
"state": {
"off": "Off",
"unknwon": "Unknown",
Expand All @@ -61,7 +61,7 @@
"frost": "Frost"
}
},
"mode list":{
"mode_list":{
"state": {
"main_area": "Main area",
"secondary_area": "Secondary area",
Expand Down
4 changes: 2 additions & 2 deletions custom_components/husqvarna_automower/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"entity": {
"sensor": {
"problem list": {
"problem_list": {
"state": {
"off": "Apagado",
"unknwon": "Desconocido",
Expand All @@ -60,7 +60,7 @@
"frost": "Hielo"
}
},
"mode list":{
"mode_list":{
"state": {
"main_area": "Área principal",
"secondary_area": "Area secundaria",
Expand Down

0 comments on commit f60fc21

Please sign in to comment.