From f613091c5c668e3ff7c45f16600cf17d07e923dd Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 20 Dec 2023 17:08:23 +0100 Subject: [PATCH] Update add-automation-element-dialog.ts --- .../config/automation/add-automation-element-dialog.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/panels/config/automation/add-automation-element-dialog.ts b/src/panels/config/automation/add-automation-element-dialog.ts index df2ff23552fa..0d1731e44e2b 100644 --- a/src/panels/config/automation/add-automation-element-dialog.ts +++ b/src/panels/config/automation/add-automation-element-dialog.ts @@ -275,7 +275,7 @@ class DialogAddAutomationElement extends LitElement implements HassDialog { manifests: DomainManifestLookup | undefined, group?: string ): ListItem[] => { - if (!services || group === "building_blocks") { + if (!services) { return []; } const result: ListItem[] = []; @@ -314,6 +314,10 @@ class DialogAddAutomationElement extends LitElement implements HassDialog { ); } + if (group && !["helpers", "other"].includes(group)) { + return []; + } + Object.keys(services) .sort() .forEach((dmn) => {