mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Add entity attribute value translations for vacuum (#16564)
This commit is contained in:
parent
d873f26db3
commit
42aa4ab7c2
@ -196,7 +196,16 @@ class MoreInfoVacuum extends LitElement {
|
|||||||
>
|
>
|
||||||
${stateObj.attributes.fan_speed_list!.map(
|
${stateObj.attributes.fan_speed_list!.map(
|
||||||
(mode) => html`
|
(mode) => html`
|
||||||
<mwc-list-item .value=${mode}>${mode}</mwc-list-item>
|
<mwc-list-item .value=${mode}>
|
||||||
|
${computeAttributeValueDisplay(
|
||||||
|
this.hass.localize,
|
||||||
|
stateObj,
|
||||||
|
this.hass.locale,
|
||||||
|
this.hass.entities,
|
||||||
|
"fan_speed",
|
||||||
|
mode
|
||||||
|
)}
|
||||||
|
</mwc-list-item>
|
||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
</ha-select>
|
</ha-select>
|
||||||
@ -205,7 +214,13 @@ class MoreInfoVacuum extends LitElement {
|
|||||||
>
|
>
|
||||||
<span>
|
<span>
|
||||||
<ha-svg-icon .path=${mdiFan}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiFan}></ha-svg-icon>
|
||||||
${stateObj.attributes.fan_speed}
|
${computeAttributeValueDisplay(
|
||||||
|
this.hass.localize,
|
||||||
|
stateObj,
|
||||||
|
this.hass.locale,
|
||||||
|
this.hass.entities,
|
||||||
|
"fan_speed"
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user