Don't give rows hass if it doesn't exist
This commit is contained in:
1 parent
1cb48457d2
commit
5ab35c5410
1 file changed
+1
-1
+1
-1
@@ -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",
|
||||||
|
|||||||
Reference in new issue
Block a user