From 9eea17b793b2e007ab408f71c3577e222ec1808b Mon Sep 17 00:00:00 2001 From: Zack Barett Date: Mon, 7 Feb 2022 17:45:16 -0600 Subject: [PATCH] Convert Automation Action Choose to HA Form (#11597) * Convert Auatomation Action Choose to HA Form * remove log * Remove Import --- .../action/types/ha-automation-action-choose.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/panels/config/automation/action/types/ha-automation-action-choose.ts b/src/panels/config/automation/action/types/ha-automation-action-choose.ts index f342512745..48ff2b68f7 100644 --- a/src/panels/config/automation/action/types/ha-automation-action-choose.ts +++ b/src/panels/config/automation/action/types/ha-automation-action-choose.ts @@ -10,8 +10,8 @@ import { Condition } from "../../../../../data/automation"; import { Action, ChooseAction } from "../../../../../data/script"; import { haStyle } from "../../../../../resources/styles"; import { HomeAssistant } from "../../../../../types"; -import "../ha-automation-action"; import { ActionElement } from "../ha-automation-action-row"; +import "../../../../../components/ha-form/ha-form"; @customElement("ha-automation-action-choose") export class HaChooseAction extends LitElement implements ActionElement { @@ -61,12 +61,13 @@ export class HaChooseAction extends LitElement implements ActionElement { "ui.panel.config.automation.editor.actions.type.choose.sequence" )}: - + > ` )} @@ -107,7 +108,7 @@ export class HaChooseAction extends LitElement implements ActionElement { private _actionChanged(ev: CustomEvent) { ev.stopPropagation(); - const value = ev.detail.value as Action[]; + const value = ev.detail.value.sequence as Action[]; const index = (ev.target as any).idx; const choose = this.action.choose ? [...ensureArray(this.action.choose)]