Skip to content

Commit

Permalink
Add hold_action to Tile card's visual config editor (#22042)
Browse files Browse the repository at this point in the history
* Add hold_action to tile card's visual config editor

* Set hold_action default action to 'none'
  • Loading branch information
redxtech authored Oct 28, 2024
1 parent f0f47aa commit 05dfa1b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const cardConfigStruct = assign(
vertical: optional(boolean()),
tap_action: optional(actionConfigStruct),
icon_tap_action: optional(actionConfigStruct),
hold_action: optional(actionConfigStruct),
features: optional(array(any())),
})
);
Expand Down Expand Up @@ -156,6 +157,14 @@ export class HuiTileCardEditor
},
},
},
{
name: "hold_action",
selector: {
ui_action: {
default_action: "none",
},
},
},
],
},
] as const satisfies readonly HaFormSchema[]
Expand Down

0 comments on commit 05dfa1b

Please sign in to comment.