mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 00:36:34 +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",
|
type: "alarm-panel",
|
||||||
entity: "alarm_control_panel.abode_alarm",
|
entity: "alarm_control_panel.abode_alarm",
|
||||||
title: "Abode",
|
name: "Abode",
|
||||||
states: ["arm_home", "arm_away"],
|
states: ["arm_home", "arm_away"],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -29,8 +29,8 @@ const cardConfigStruct = struct({
|
|||||||
entity: "string?",
|
entity: "string?",
|
||||||
name: "string?",
|
name: "string?",
|
||||||
icon: "string?",
|
icon: "string?",
|
||||||
tap_action: actionConfigStruct,
|
tap_action: struct.optional(actionConfigStruct),
|
||||||
hold_action: actionConfigStruct,
|
hold_action: struct.optional(actionConfigStruct),
|
||||||
theme: "string?",
|
theme: "string?",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -25,8 +25,8 @@ import "../../components/hui-action-editor";
|
|||||||
const cardConfigStruct = struct({
|
const cardConfigStruct = struct({
|
||||||
type: "string",
|
type: "string",
|
||||||
image: "string?",
|
image: "string?",
|
||||||
tap_action: actionConfigStruct,
|
tap_action: struct.optional(actionConfigStruct),
|
||||||
hold_action: actionConfigStruct,
|
hold_action: struct.optional(actionConfigStruct),
|
||||||
});
|
});
|
||||||
|
|
||||||
export class HuiPictureCardEditor extends hassLocalizeLitMixin(LitElement)
|
export class HuiPictureCardEditor extends hassLocalizeLitMixin(LitElement)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user