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

Commit

Permalink
also fix mode list
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas55555 authored Apr 3, 2023
1 parent 89a14f2 commit 6241172
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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 Down
2 changes: 1 addition & 1 deletion custom_components/husqvarna_automower/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"frost": "Frost"
}
},
"mode list":{
"mode_list":{
"state": {
"main_area": "Main area",
"secondary_area": "Secondary area",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/husqvarna_automower/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"frost": "Frost"
}
},
"mode list":{
"mode_list":{
"state": {
"main_area": "Hauptbereich",
"secondary_area": "Zweitbereich",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/husqvarna_automower/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"frost": "Frost"
}
},
"mode list":{
"mode_list":{
"state": {
"main_area": "Main area",
"secondary_area": "Secondary area",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/husqvarna_automower/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 6241172

Please sign in to comment.