mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Fix action editor (#2547)
This commit is contained in:
parent
a9df5ea6a9
commit
96f7f842cd
@ -596,7 +596,7 @@ export const demoLovelaceArsaboo: () => LovelaceConfig = () => ({
|
||||
{
|
||||
type: "alarm-panel",
|
||||
entity: "alarm_control_panel.abode_alarm",
|
||||
title: "Abode",
|
||||
name: "Abode",
|
||||
states: ["arm_home", "arm_away"],
|
||||
},
|
||||
{
|
||||
|
@ -29,8 +29,8 @@ const cardConfigStruct = struct({
|
||||
entity: "string?",
|
||||
name: "string?",
|
||||
icon: "string?",
|
||||
tap_action: actionConfigStruct,
|
||||
hold_action: actionConfigStruct,
|
||||
tap_action: struct.optional(actionConfigStruct),
|
||||
hold_action: struct.optional(actionConfigStruct),
|
||||
theme: "string?",
|
||||
});
|
||||
|
||||
|
@ -25,8 +25,8 @@ import "../../components/hui-action-editor";
|
||||
const cardConfigStruct = struct({
|
||||
type: "string",
|
||||
image: "string?",
|
||||
tap_action: actionConfigStruct,
|
||||
hold_action: actionConfigStruct,
|
||||
tap_action: struct.optional(actionConfigStruct),
|
||||
hold_action: struct.optional(actionConfigStruct),
|
||||
});
|
||||
|
||||
export class HuiPictureCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||
|
Loading…
x
Reference in New Issue
Block a user