mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
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:
parent
f0f47aac3b
commit
05dfa1bb1a
@ -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[]
|
||||
|
Loading…
x
Reference in New Issue
Block a user