Skip to content

Commit

Permalink
Use ui_action instead of ui-action selector (#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Oct 30, 2024
1 parent 8efdac8 commit e9d3c1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/cards/title-card/title-card-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 } },
},
];

Expand Down
6 changes: 3 additions & 3 deletions src/shared/config/actions-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 } },
},
];
};
2 changes: 1 addition & 1 deletion src/utils/form/ha-selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export interface TimeSelector {
export type UiAction = Exclude<ActionConfig["action"], "fire-dom-event">;

export interface UiActionSelector {
"ui-action": {
ui_action: {
actions?: UiAction[];
} | null;
}

0 comments on commit e9d3c1b

Please sign in to comment.