From 849ed80e78de2d05b9a2692e324f04a2a8ff9401 Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Tue, 18 Dec 2018 04:14:55 -0600 Subject: [PATCH] :no_entry_sign: render `error-entity-row` when state not available (#2352) --- .../lovelace/entity-rows/hui-climate-entity-row.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/panels/lovelace/entity-rows/hui-climate-entity-row.ts b/src/panels/lovelace/entity-rows/hui-climate-entity-row.ts index 35d6720205..3186c9c62b 100644 --- a/src/panels/lovelace/entity-rows/hui-climate-entity-row.ts +++ b/src/panels/lovelace/entity-rows/hui-climate-entity-row.ts @@ -31,12 +31,22 @@ class HuiClimateEntityRow extends LitElement implements EntityRow { return html``; } + const stateObj = this.hass.states[this._config.entity]; + + if (!stateObj) { + return html` + + `; + } + return html` ${this.renderStyle()} `;