Show attribute value when 0 (#7842)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Ian Richardson 2020-11-29 15:37:13 -06:00 committed by GitHub
parent 335354d962
commit 7d4cad90bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
`;