mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Use entity translation for away mode (#17750)
* Use entity translation for away mode * Remove keys
This commit is contained in:
parent
806cebb024
commit
68fa67e77a
@ -119,11 +119,19 @@ class MoreInfoWaterHeater extends LitElement {
|
||||
slot="graphic"
|
||||
.path=${mdiAccountArrowRight}
|
||||
></ha-svg-icon>
|
||||
${this.hass.localize("state.default.on")}
|
||||
${this.hass.formatEntityAttributeValue(
|
||||
stateObj,
|
||||
"away_mode",
|
||||
"on"
|
||||
)}
|
||||
</ha-list-item>
|
||||
<ha-list-item value="off" graphic="icon">
|
||||
<ha-svg-icon slot="graphic" .path=${mdiAccount}></ha-svg-icon>
|
||||
${this.hass.localize("state.default.off")}
|
||||
${this.hass.formatEntityAttributeValue(
|
||||
stateObj,
|
||||
"away_mode",
|
||||
"off"
|
||||
)}
|
||||
</ha-list-item>
|
||||
</ha-control-select-menu>
|
||||
`
|
||||
|
@ -15,8 +15,6 @@
|
||||
},
|
||||
"state": {
|
||||
"default": {
|
||||
"on": "On",
|
||||
"off": "Off",
|
||||
"unknown": "Unknown",
|
||||
"unavailable": "Unavailable"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user