mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 01:06:35 +00:00
Not valid config, but we support it in the editor (#10893)
This commit is contained in:
parent
dc58481918
commit
b3d4451035
@ -17,9 +17,9 @@ import {
|
|||||||
|
|
||||||
const stateConditionStruct = object({
|
const stateConditionStruct = object({
|
||||||
condition: literal("state"),
|
condition: literal("state"),
|
||||||
entity_id: string(),
|
entity_id: optional(string()),
|
||||||
attribute: optional(string()),
|
attribute: optional(string()),
|
||||||
state: string(),
|
state: optional(string()),
|
||||||
for: optional(union([string(), forDictStruct])),
|
for: optional(union([string(), forDictStruct])),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ const stateTriggerStruct = assign(
|
|||||||
baseTriggerStruct,
|
baseTriggerStruct,
|
||||||
object({
|
object({
|
||||||
platform: literal("state"),
|
platform: literal("state"),
|
||||||
entity_id: string(),
|
entity_id: optional(string()),
|
||||||
attribute: optional(string()),
|
attribute: optional(string()),
|
||||||
from: optional(string()),
|
from: optional(string()),
|
||||||
to: optional(string()),
|
to: optional(string()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user