From 863787b3f1b7f9c309366a0b0824a252576aaf74 Mon Sep 17 00:00:00 2001 From: Andrew Ma Date: Wed, 28 Sep 2022 00:04:03 -0700 Subject: [PATCH] Prefer head: over entity: When both entity: and head: are included, entity: will supersede head:. Some components (like auto-entities) will automatically set entity: and so any head: options will get ignored. Use case: ``` type: custom:auto-entities card: type: entities filter: include: - group: light.downstairs options: type: custom:fold-entity-row head: entity: this.entity_id secondary_info: last-changed ``` --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 514fcc4..5a9768e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -51,7 +51,7 @@ class FoldEntityRow extends LitElement { } async _finishSetup() { - let head = ensureObject(this._config.entity || this._config.head); + let head = ensureObject(this._config.head || this._config.entity); if (!head) { throw new Error("No fold head specified"); }