From e765acc0e5b46879da7586bf10a4676059f31b6a Mon Sep 17 00:00:00 2001 From: abmantis Date: Tue, 29 Jul 2025 19:32:29 +0100 Subject: [PATCH] Add top-level target support to condition schema --- script/hassfest/conditions.py | 3 +++ 1 file changed, 3 insertions(+) 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}), } ),