mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 10:08:23 +00:00
Add top-level target support to condition schema
This commit is contained in:
parent
ff7c125334
commit
e765acc0e5
@ -38,6 +38,9 @@ FIELD_SCHEMA = vol.Schema(
|
||||
CONDITION_SCHEMA = vol.Any(
|
||||
vol.Schema(
|
||||
{
|
||||
vol.Optional("target"): vol.Any(
|
||||
selector.TargetSelector.CONFIG_SCHEMA, None
|
||||
),
|
||||
vol.Optional("fields"): vol.Schema({str: FIELD_SCHEMA}),
|
||||
}
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user