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:
@@ -339,12 +339,16 @@ export class HaAutomationAddSearch extends LitElement {
|
|||||||
></ha-tree-indicator>
|
></ha-tree-indicator>
|
||||||
`
|
`
|
||||||
: nothing}
|
: 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>`
|
? html`<ha-icon slot="start" .icon=${item.icon}></ha-icon>`
|
||||||
: item.icon_path
|
: item.icon_path || type === "area"
|
||||||
? html`<ha-svg-icon
|
? html`<ha-svg-icon
|
||||||
slot="start"
|
slot="start"
|
||||||
.path=${item.icon_path}
|
.path=${item.icon_path || mdiTextureBox}
|
||||||
></ha-svg-icon>`
|
></ha-svg-icon>`
|
||||||
: type === "entity" && (item as EntityComboBoxItem).stateObj
|
: type === "entity" && (item as EntityComboBoxItem).stateObj
|
||||||
? html`
|
? html`
|
||||||
@@ -368,11 +372,6 @@ export class HaAutomationAddSearch extends LitElement {
|
|||||||
slot="start"
|
slot="start"
|
||||||
.floor=${(item as FloorComboBoxItem).floor!}
|
.floor=${(item as FloorComboBoxItem).floor!}
|
||||||
></ha-floor-icon>`
|
></ha-floor-icon>`
|
||||||
: type === "area"
|
|
||||||
? html`<ha-svg-icon
|
|
||||||
slot="start"
|
|
||||||
.path=${item.icon_path || mdiTextureBox}
|
|
||||||
></ha-svg-icon>`
|
|
||||||
: nothing}
|
: nothing}
|
||||||
<span slot="headline">${item.primary}</span>
|
<span slot="headline">${item.primary}</span>
|
||||||
${item.secondary
|
${item.secondary
|
||||||
@@ -792,7 +791,7 @@ export class HaAutomationAddSearch extends LitElement {
|
|||||||
id: key,
|
id: key,
|
||||||
primary: name,
|
primary: name,
|
||||||
secondary: description,
|
secondary: description,
|
||||||
iconPath,
|
icon_path: iconPath,
|
||||||
renderedIcon: icon,
|
renderedIcon: icon,
|
||||||
type,
|
type,
|
||||||
search_labels: {
|
search_labels: {
|
||||||
|
|||||||
Reference in New Issue
Block a user