From e9d3c1b7519801b1179f3043852b370563e74220 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 30 Oct 2024 15:15:31 +0100 Subject: [PATCH] Use ui_action instead of ui-action selector (#1567) --- src/cards/title-card/title-card-editor.ts | 4 ++-- src/shared/config/actions-config.ts | 6 +++--- src/utils/form/ha-selector.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cards/title-card/title-card-editor.ts b/src/cards/title-card/title-card-editor.ts index 357367e3..59390bd9 100644 --- a/src/cards/title-card/title-card-editor.ts +++ b/src/cards/title-card/title-card-editor.ts @@ -30,11 +30,11 @@ const SCHEMA: HaFormSchema[] = [ { name: "alignment", selector: { mush_alignment: {} } }, { name: "title_tap_action", - selector: { "ui-action": { actions } }, + selector: { ui_action: { actions } }, }, { name: "subtitle_tap_action", - selector: { "ui-action": { actions } }, + selector: { ui_action: { actions } }, }, ]; diff --git a/src/shared/config/actions-config.ts b/src/shared/config/actions-config.ts index 4db0928e..5eb14682 100644 --- a/src/shared/config/actions-config.ts +++ b/src/shared/config/actions-config.ts @@ -30,15 +30,15 @@ export const computeActionsFormSchema = ( return [ { name: "tap_action", - selector: { "ui-action": { actions } }, + selector: { ui_action: { actions } }, }, { name: "hold_action", - selector: { "ui-action": { actions } }, + selector: { ui_action: { actions } }, }, { name: "double_tap_action", - selector: { "ui-action": { actions } }, + selector: { ui_action: { actions } }, }, ]; }; diff --git a/src/utils/form/ha-selector.ts b/src/utils/form/ha-selector.ts index 855b6da3..1b9acf32 100644 --- a/src/utils/form/ha-selector.ts +++ b/src/utils/form/ha-selector.ts @@ -247,7 +247,7 @@ export interface TimeSelector { export type UiAction = Exclude; export interface UiActionSelector { - "ui-action": { + ui_action: { actions?: UiAction[]; } | null; }