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,8 +105,6 @@ class MoreInfoVacuum extends LitElement {
|
||||
return html`
|
||||
${stateObj.state !== UNAVAILABLE
|
||||
? html` <div class="flex-horizontal">
|
||||
${supportsFeature(stateObj, VacuumEntityFeature.STATUS)
|
||||
? html`
|
||||
<div>
|
||||
<span class="status-subtitle"
|
||||
>${this.hass!.localize(
|
||||
@ -115,15 +113,17 @@ class MoreInfoVacuum extends LitElement {
|
||||
</span>
|
||||
<span>
|
||||
<strong>
|
||||
${computeAttributeValueDisplay(
|
||||
${supportsFeature(stateObj, VacuumEntityFeature.STATUS) &&
|
||||
stateObj.attributes.status
|
||||
? computeAttributeValueDisplay(
|
||||
this.hass.localize,
|
||||
stateObj,
|
||||
this.hass.locale,
|
||||
this.hass.config,
|
||||
this.hass.entities,
|
||||
"status"
|
||||
) ||
|
||||
computeStateDisplay(
|
||||
)
|
||||
: computeStateDisplay(
|
||||
this.hass.localize,
|
||||
stateObj,
|
||||
this.hass.locale,
|
||||
@ -133,8 +133,6 @@ class MoreInfoVacuum extends LitElement {
|
||||
</strong>
|
||||
</span>
|
||||
</div>
|
||||
`
|
||||
: ""}
|
||||
${supportsFeature(stateObj, VacuumEntityFeature.BATTERY) &&
|
||||
stateObj.attributes.battery_level
|
||||
? html`
|
||||
|
Loading…
x
Reference in New Issue
Block a user