From a6c71719d18af11f24146d07a1a691538c18ce75 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 26 Nov 2025 13:56:55 +0100 Subject: [PATCH] Only show section title when it has content (#28141) --- src/panels/config/automation/add-automation-element-dialog.ts | 2 +- 1 file changed, 1 insertion(+), 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 54bec69bd6..8a08f1d064 100644 --- a/src/panels/config/automation/add-automation-element-dialog.ts +++ b/src/panels/config/automation/add-automation-element-dialog.ts @@ -599,7 +599,7 @@ class DialogAddAutomationElement : nothing} ${collections.map( (collection, index) => html` - ${collection.titleKey + ${collection.titleKey && collection.groups.length ? html` ${this.hass.localize(collection.titleKey)} `