mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 10:46:35 +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"
|
slot="graphic"
|
||||||
.path=${mdiAccountArrowRight}
|
.path=${mdiAccountArrowRight}
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
${this.hass.localize("state.default.on")}
|
${this.hass.formatEntityAttributeValue(
|
||||||
|
stateObj,
|
||||||
|
"away_mode",
|
||||||
|
"on"
|
||||||
|
)}
|
||||||
</ha-list-item>
|
</ha-list-item>
|
||||||
<ha-list-item value="off" graphic="icon">
|
<ha-list-item value="off" graphic="icon">
|
||||||
<ha-svg-icon slot="graphic" .path=${mdiAccount}></ha-svg-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-list-item>
|
||||||
</ha-control-select-menu>
|
</ha-control-select-menu>
|
||||||
`
|
`
|
||||||
|
@ -15,8 +15,6 @@
|
|||||||
},
|
},
|
||||||
"state": {
|
"state": {
|
||||||
"default": {
|
"default": {
|
||||||
"on": "On",
|
|
||||||
"off": "Off",
|
|
||||||
"unknown": "Unknown",
|
"unknown": "Unknown",
|
||||||
"unavailable": "Unavailable"
|
"unavailable": "Unavailable"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user