Prevent YAML mode if no entity is set in card editor (#8110)

This commit is contained in:
Philip Allgaier 2021-01-08 11:07:04 +01:00 committed by GitHub
parent 4deeff7029
commit da07173471
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ import { configElementStyle } from "./config-elements-style";
const cardConfigStruct = object({
type: string(),
entity: string(),
entity: optional(string()),
name: optional(string()),
theme: optional(string()),
});

View File

@ -28,7 +28,7 @@ import { configElementStyle } from "./config-elements-style";
const cardConfigStruct = object({
type: string(),
entity: string(),
entity: optional(string()),
image: optional(string()),
name: optional(string()),
camera_image: optional(string()),

View File

@ -21,7 +21,7 @@ import { configElementStyle } from "./config-elements-style";
const cardConfigStruct = object({
type: string(),
entity: string(),
entity: optional(string()),
name: optional(string()),
theme: optional(string()),
});

View File

@ -20,7 +20,7 @@ import { configElementStyle } from "./config-elements-style";
const cardConfigStruct = object({
type: string(),
entity: string(),
entity: optional(string()),
name: optional(string()),
theme: optional(string()),
});