Fix action editor (#2547)

This commit is contained in:
Bram Kragten 2019-01-23 21:39:58 +01:00 committed by Paulus Schoutsen
parent a9df5ea6a9
commit 96f7f842cd
3 changed files with 5 additions and 5 deletions

View File

@ -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"],
},
{

View File

@ -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?",
});

View File

@ -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)