diff --git a/script/hassfest/conditions.py b/script/hassfest/conditions.py index 2a1d363a5fc..0cc16226422 100644 --- a/script/hassfest/conditions.py +++ b/script/hassfest/conditions.py @@ -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}), } ),