mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix state display in vacuum more info (#17063)
This commit is contained in:
parent
952bcff8c8
commit
927c6dd778
@ -105,36 +105,34 @@ class MoreInfoVacuum extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
${stateObj.state !== UNAVAILABLE
|
${stateObj.state !== UNAVAILABLE
|
||||||
? html` <div class="flex-horizontal">
|
? html` <div class="flex-horizontal">
|
||||||
${supportsFeature(stateObj, VacuumEntityFeature.STATUS)
|
<div>
|
||||||
? html`
|
<span class="status-subtitle"
|
||||||
<div>
|
>${this.hass!.localize(
|
||||||
<span class="status-subtitle"
|
"ui.dialogs.more_info_control.vacuum.status"
|
||||||
>${this.hass!.localize(
|
)}:
|
||||||
"ui.dialogs.more_info_control.vacuum.status"
|
</span>
|
||||||
)}:
|
<span>
|
||||||
</span>
|
<strong>
|
||||||
<span>
|
${supportsFeature(stateObj, VacuumEntityFeature.STATUS) &&
|
||||||
<strong>
|
stateObj.attributes.status
|
||||||
${computeAttributeValueDisplay(
|
? computeAttributeValueDisplay(
|
||||||
this.hass.localize,
|
this.hass.localize,
|
||||||
stateObj,
|
stateObj,
|
||||||
this.hass.locale,
|
this.hass.locale,
|
||||||
this.hass.config,
|
this.hass.config,
|
||||||
this.hass.entities,
|
this.hass.entities,
|
||||||
"status"
|
"status"
|
||||||
) ||
|
)
|
||||||
computeStateDisplay(
|
: computeStateDisplay(
|
||||||
this.hass.localize,
|
this.hass.localize,
|
||||||
stateObj,
|
stateObj,
|
||||||
this.hass.locale,
|
this.hass.locale,
|
||||||
this.hass.config,
|
this.hass.config,
|
||||||
this.hass.entities
|
this.hass.entities
|
||||||
)}
|
)}
|
||||||
</strong>
|
</strong>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
`
|
|
||||||
: ""}
|
|
||||||
${supportsFeature(stateObj, VacuumEntityFeature.BATTERY) &&
|
${supportsFeature(stateObj, VacuumEntityFeature.BATTERY) &&
|
||||||
stateObj.attributes.battery_level
|
stateObj.attributes.battery_level
|
||||||
? html`
|
? html`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user