mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Prevent YAML mode if no entity is set in card editor (#8110)
This commit is contained in:
parent
4deeff7029
commit
da07173471
@ -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()),
|
||||
});
|
||||
|
@ -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()),
|
||||
|
@ -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()),
|
||||
});
|
||||
|
@ -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()),
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user