Skip to content

Commit

Permalink
use state strings for thermostat tile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martreides committed Jan 13, 2025
1 parent bebbd5f commit db9bfe0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions common/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,4 @@
<string name="thermostat_tile">Thermostat tile</string>
<string name="climate_heating">Heating</string>
<string name="climate_cooling">Cooling</string>
<string name="climate_idle">Idle</string>
<string name="climate_off">Off</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ class ThermostatTile : TileService() {
val friendlyHvacAction = when (hvacAction) {
"heating" -> getString(R.string.climate_heating)
"cooling" -> getString(R.string.climate_cooling)
"idle" -> getString(R.string.climate_idle)
"off" -> getString(R.string.climate_off)
"idle" -> getString(R.string.state_idle)
"off" -> getString(R.string.state_off)
else -> hvacAction
}

Expand Down

0 comments on commit db9bfe0

Please sign in to comment.