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