Don't give rows hass if it doesn't exist

This commit is contained in:
Thomas Lovén 2019-01-17 08:42:29 +01:00
parent 1cb48457d2
commit 5ab35c5410

View File

@ -68,7 +68,7 @@ class FoldEntityRow extends LitElement {
conf = (typeof conf === "string") ? {entity: conf} : conf; conf = (typeof conf === "string") ? {entity: conf} : conf;
conf = Object.assign(conf, options); conf = Object.assign(conf, options);
const element = window.cardTools.createEntityRow(conf); const element = window.cardTools.createEntityRow(conf);
element.hass = this._hass; if(this._hass) element.hass = this._hass;
const DOMAINS_HIDE_MORE_INFO = [ const DOMAINS_HIDE_MORE_INFO = [
"input_number", "input_number",