diff --git a/src/panels/config/automation/add-automation-element/ha-automation-add-search.ts b/src/panels/config/automation/add-automation-element/ha-automation-add-search.ts index 057e419d33..ab95f9c9d6 100644 --- a/src/panels/config/automation/add-automation-element/ha-automation-add-search.ts +++ b/src/panels/config/automation/add-automation-element/ha-automation-add-search.ts @@ -339,40 +339,39 @@ export class HaAutomationAddSearch extends LitElement { > ` : nothing} - ${item.icon - ? html`` - : item.icon_path - ? html`` - : type === "entity" && (item as EntityComboBoxItem).stateObj - ? html` - - ` - : type === "device" && (item as DevicePickerItem).domain + ${(item as AutomationItemComboBoxItem).renderedIcon + ? html`
+ ${(item as AutomationItemComboBoxItem).renderedIcon} +
` + : item.icon + ? html`` + : item.icon_path || type === "area" + ? html`` + : type === "entity" && (item as EntityComboBoxItem).stateObj ? html` - + > ` - : type === "floor" - ? html`` - : type === "area" - ? html`` + .hass=${this.hass} + .domain=${(item as DevicePickerItem).domain!} + brand-fallback + > + ` + : type === "floor" + ? html`` : nothing} ${item.primary} ${item.secondary @@ -792,7 +791,7 @@ export class HaAutomationAddSearch extends LitElement { id: key, primary: name, secondary: description, - iconPath, + icon_path: iconPath, renderedIcon: icon, type, search_labels: {