From 5ab35c5410c0aec3205106b710d44f21c1beb479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Thu, 17 Jan 2019 08:42:29 +0100 Subject: [PATCH] Don't give rows hass if it doesn't exist --- fold-entity-row.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fold-entity-row.js b/fold-entity-row.js index 5f56cf9..d91d2b2 100644 --- a/fold-entity-row.js +++ b/fold-entity-row.js @@ -68,7 +68,7 @@ class FoldEntityRow extends LitElement { conf = (typeof conf === "string") ? {entity: conf} : conf; conf = Object.assign(conf, options); const element = window.cardTools.createEntityRow(conf); - element.hass = this._hass; + if(this._hass) element.hass = this._hass; const DOMAINS_HIDE_MORE_INFO = [ "input_number",