From 7d4cad90bc99122f034ac4723efd8426b10048ba Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Sun, 29 Nov 2020 15:37:13 -0600 Subject: [PATCH] Show attribute value when 0 (#7842) Co-authored-by: Bram Kragten --- src/panels/lovelace/special-rows/hui-attribute-row.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panels/lovelace/special-rows/hui-attribute-row.ts b/src/panels/lovelace/special-rows/hui-attribute-row.ts index 97a44d2867..aa95125acc 100644 --- a/src/panels/lovelace/special-rows/hui-attribute-row.ts +++ b/src/panels/lovelace/special-rows/hui-attribute-row.ts @@ -57,7 +57,8 @@ class HuiAttributeRow extends LitElement implements LovelaceRow { return html`
- ${this._config.prefix} ${attribute || "-"} ${this._config.suffix} + ${this._config.prefix} ${attribute ?? "-"} + ${this._config.suffix}
`;