mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Show attribute value when 0 (#7842)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
335354d962
commit
7d4cad90bc
@ -57,7 +57,8 @@ class HuiAttributeRow extends LitElement implements LovelaceRow {
|
||||
return html`
|
||||
<hui-generic-entity-row .hass=${this.hass} .config=${this._config}>
|
||||
<div>
|
||||
${this._config.prefix} ${attribute || "-"} ${this._config.suffix}
|
||||
${this._config.prefix} ${attribute ?? "-"}
|
||||
${this._config.suffix}
|
||||
</div>
|
||||
</hui-generic-entity-row>
|
||||
`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user