Merge pull request #2548 from home-assistant/dev

Fix action editor (#2547)
This commit is contained in:
Paulus Schoutsen 2019-01-23 12:45:20 -08:00 committed by GitHub
commit f3eaba4b23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)