From 8f6a09f44c51ca753ba9eec14433e57232401ced Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 13 Sep 2022 10:43:38 +0200 Subject: [PATCH] Don't use selector inside choose action (#13705) --- .../action/types/ha-automation-action-choose.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 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 67a70e4304..4ab8dd1538 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 @@ -9,7 +9,6 @@ import { Action, ChooseAction } from "../../../../../data/script"; import { haStyle } from "../../../../../resources/styles"; import { HomeAssistant } from "../../../../../types"; 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 { @@ -64,13 +63,13 @@ export class HaChooseAction extends LitElement implements ActionElement { "ui.panel.config.automation.editor.actions.type.choose.sequence" )}: - + > ` )} @@ -126,7 +125,7 @@ export class HaChooseAction extends LitElement implements ActionElement { private _actionChanged(ev: CustomEvent) { ev.stopPropagation(); - const value = ev.detail.value.sequence as Action[]; + const value = ev.detail.value as Action[]; const index = (ev.target as any).idx; const choose = this.action.choose ? [...ensureArray(this.action.choose)] @@ -185,9 +184,6 @@ export class HaChooseAction extends LitElement implements ActionElement { right: 0; padding: 4px; } - ha-form::part(root) { - overflow: visible; - } ha-svg-icon { height: 20px; }