mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 22:06:34 +00:00
parent
29bdf7877c
commit
83876fb9da
@ -124,7 +124,7 @@ export class HuiEntityCard extends LitElement implements LovelaceCard {
|
|||||||
<div class="info">
|
<div class="info">
|
||||||
<span class="value"
|
<span class="value"
|
||||||
>${"attribute" in this._config
|
>${"attribute" in this._config
|
||||||
? stateObj.attributes[this._config.attribute!] ||
|
? stateObj.attributes[this._config.attribute!] ??
|
||||||
this.hass.localize("state.default.unknown")
|
this.hass.localize("state.default.unknown")
|
||||||
: stateObj.attributes.unit_of_measurement
|
: stateObj.attributes.unit_of_measurement
|
||||||
? stateObj.state
|
? stateObj.state
|
||||||
|
Loading…
x
Reference in New Issue
Block a user