mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-25 05:47:20 +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({
|
||||
condition: literal("state"),
|
||||
entity_id: string(),
|
||||
entity_id: optional(string()),
|
||||
attribute: optional(string()),
|
||||
state: string(),
|
||||
state: optional(string()),
|
||||
for: optional(union([string(), forDictStruct])),
|
||||
});
|
||||
|
||||
|
@ -28,7 +28,7 @@ const stateTriggerStruct = assign(
|
||||
baseTriggerStruct,
|
||||
object({
|
||||
platform: literal("state"),
|
||||
entity_id: string(),
|
||||
entity_id: optional(string()),
|
||||
attribute: optional(string()),
|
||||
from: optional(string()),
|
||||
to: optional(string()),
|
||||
|
Loading…
x
Reference in New Issue
Block a user