Add ability to expand groups dynamically. Fix thomasloven/lovelace-auto-entities#18

This commit is contained in:
2019-08-05 16:28:19 +02:00
parent 44c666e421
commit e3f585601f
3 changed files with 20 additions and 1 deletions

View File

@@ -24,6 +24,8 @@ class FoldEntityRow extends LitElement {
this.open = this.open || this._config.open;
this.head = this._config.head;
if (this._config.entity)
this.head = this._config.entity;
if (typeof this.head === "string")
this.head = {entity: this.head};