Skip to content

Commit

Permalink
Try moving translations from operation mode to state
Browse files Browse the repository at this point in the history
Operation modes are not showing up correctly in the UI
  • Loading branch information
tonyroberts committed Nov 15, 2023
1 parent 8355165 commit 943728c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 32 deletions.
26 changes: 10 additions & 16 deletions custom_components/wundasmart/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,16 @@
"auto_on": "On (Auto)",
"auto_off": "Off (Auto)",
"boost_on": "On",
"boost_off": "Off"
},
"state_attributes": {
"operation_mode": {
"state": {
"auto": "Auto",
"boost_30": "Boost (30 mins)",
"boost_60": "Boost (1 hour)",
"boost_90": "Boost (1.5 hours)",
"boost_120": "Boost (2 hours)",
"off_30": "Off (30 mins)",
"off_60": "Off (1 hour)",
"off_90": "Off (1.5 hours)",
"off_120": "Off (2 hours)"
}
}
"boost_off": "Off",
"auto": "Auto",
"boost_30": "Boost (30 mins)",
"boost_60": "Boost (1 hour)",
"boost_90": "Boost (1.5 hours)",
"boost_120": "Boost (2 hours)",
"off_30": "Off (30 mins)",
"off_60": "Off (1 hour)",
"off_90": "Off (1.5 hours)",
"off_120": "Off (2 hours)"
}
}
}
Expand Down
26 changes: 10 additions & 16 deletions custom_components/wundasmart/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,16 @@
"auto_on": "On (Auto)",
"auto_off": "Off (Auto)",
"boost_on": "On",
"boost_off": "Off"
},
"state_attributes": {
"operation_mode": {
"state": {
"auto": "Auto",
"boost_30": "Boost (30 mins)",
"boost_60": "Boost (1 hour)",
"boost_90": "Boost (1.5 hours)",
"boost_120": "Boost (2 hours)",
"off_30": "Off (30 mins)",
"off_60": "Off (1 hour)",
"off_90": "Off (1.5 hours)",
"off_120": "Off (2 hours)"
}
}
"boost_off": "Off",
"auto": "Auto",
"boost_30": "Boost (30 mins)",
"boost_60": "Boost (1 hour)",
"boost_90": "Boost (1.5 hours)",
"boost_120": "Boost (2 hours)",
"off_30": "Off (30 mins)",
"off_60": "Off (1 hour)",
"off_90": "Off (1.5 hours)",
"off_120": "Off (2 hours)"
}
}
}
Expand Down

0 comments on commit 943728c

Please sign in to comment.