1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 10:48:44 +00:00

Fix automation add TCA search icons (#28490)

Fix automation add TCA seach icons
This commit is contained in:
Wendelin
2025-12-11 12:48:41 +01:00
committed by GitHub
parent bba400443e
commit 08aaee754e

View File

@@ -339,12 +339,16 @@ export class HaAutomationAddSearch extends LitElement {
></ha-tree-indicator>
`
: nothing}
${item.icon
${(item as AutomationItemComboBoxItem).renderedIcon
? html`<div slot="start">
${(item as AutomationItemComboBoxItem).renderedIcon}
</div>`
: item.icon
? html`<ha-icon slot="start" .icon=${item.icon}></ha-icon>`
: item.icon_path
: item.icon_path || type === "area"
? html`<ha-svg-icon
slot="start"
.path=${item.icon_path}
.path=${item.icon_path || mdiTextureBox}
></ha-svg-icon>`
: type === "entity" && (item as EntityComboBoxItem).stateObj
? html`
@@ -368,11 +372,6 @@ export class HaAutomationAddSearch extends LitElement {
slot="start"
.floor=${(item as FloorComboBoxItem).floor!}
></ha-floor-icon>`
: type === "area"
? html`<ha-svg-icon
slot="start"
.path=${item.icon_path || mdiTextureBox}
></ha-svg-icon>`
: nothing}
<span slot="headline">${item.primary}</span>
${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: {