Use entity translation for away mode (#17750)

* Use entity translation for away mode

* Remove keys
This commit is contained in:
Paul Bottein 2023-08-31 14:19:40 +02:00 committed by GitHub
parent 806cebb024
commit 68fa67e77a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -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>
`

View File

@ -15,8 +15,6 @@
},
"state": {
"default": {
"on": "On",
"off": "Off",
"unknown": "Unknown",
"unavailable": "Unavailable"
}