mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add top-level target support to trigger schema
This makes it consistent with the service schema.
This commit is contained in:
parent
1734b316d5
commit
8bd60f0bc2
@ -38,6 +38,9 @@ FIELD_SCHEMA = vol.Schema(
|
|||||||
TRIGGER_SCHEMA = vol.Any(
|
TRIGGER_SCHEMA = vol.Any(
|
||||||
vol.Schema(
|
vol.Schema(
|
||||||
{
|
{
|
||||||
|
vol.Optional("target"): vol.Any(
|
||||||
|
selector.TargetSelector.CONFIG_SCHEMA, None
|
||||||
|
),
|
||||||
vol.Optional("fields"): vol.Schema({str: FIELD_SCHEMA}),
|
vol.Optional("fields"): vol.Schema({str: FIELD_SCHEMA}),
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user