Add hold_action to Tile card's visual config editor (#22042)

* Add hold_action to tile card's visual config editor

* Set hold_action default action to 'none'
This commit is contained in:
Gabe Dunn 2024-10-28 01:53:47 -07:00 committed by GitHub
parent f0f47aac3b
commit 05dfa1bb1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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())),
})
);
@ -156,6 +157,14 @@ export class HuiTileCardEditor
},
},
},
{
name: "hold_action",
selector: {
ui_action: {
default_action: "none",
},
},
},
],
},
] as const satisfies readonly HaFormSchema[]