diff --git a/src/panels/config/automation/add-automation-element-dialog.ts b/src/panels/config/automation/add-automation-element-dialog.ts index 0d1731e44e2b..b24bb7112171 100644 --- a/src/panels/config/automation/add-automation-element-dialog.ts +++ b/src/panels/config/automation/add-automation-element-dialog.ts @@ -3,6 +3,7 @@ import { mdiClose, mdiContentPaste, mdiPlus } from "@mdi/js"; import Fuse, { IFuseOptions } from "fuse.js"; import { CSSResultGroup, LitElement, css, html, nothing } from "lit"; import { customElement, property, query, state } from "lit/decorators"; +import { repeat } from "lit/directives/repeat"; import memoizeOne from "memoize-one"; import { fireEvent } from "../../../common/dom/fire_event"; import { domainIcon } from "../../../common/entity/domain_icon"; @@ -452,7 +453,9 @@ class DialogAddAutomationElement extends LitElement implements HassDialog {
` : ""} - ${items.map( + ${repeat( + items, + (item) => item.key, (item) => html`