Skip to content

Commit

Permalink
Update add-automation-element-dialog.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Dec 20, 2023
1 parent 567b094 commit f613091
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [];
Expand Down Expand Up @@ -314,6 +314,10 @@ class DialogAddAutomationElement extends LitElement implements HassDialog {
);
}

if (group && !["helpers", "other"].includes(group)) {
return [];
}

Object.keys(services)
.sort()
.forEach((dmn) => {
Expand Down

0 comments on commit f613091

Please sign in to comment.