Skip to content

Commit 29d0d6c

Browse files
authored
Add top-level target support to trigger schema (home-assistant#148894)
1 parent 1743766 commit 29d0d6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

script/hassfest/triggers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def exists(value: Any) -> Any:
3838
TRIGGER_SCHEMA = vol.Any(
3939
vol.Schema(
4040
{
41+
vol.Optional("target"): vol.Any(
42+
selector.TargetSelector.CONFIG_SCHEMA, None
43+
),
4144
vol.Optional("fields"): vol.Schema({str: FIELD_SCHEMA}),
4245
}
4346
),

0 commit comments

Comments
 (0)