1
0
mirror of https://github.com/home-assistant/core.git synced 2026-02-15 07:36:16 +00:00

Add top-level target support to condition schema (#149634)

Co-authored-by: Artur Pragacz <49985303+arturpragacz@users.noreply.github.com>
This commit is contained in:
Abílio Costa
2025-09-05 22:55:28 +01:00
committed by GitHub
parent 6a5f5b9adc
commit 601d63e3b7
2 changed files with 4 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ FIELD_SCHEMA = vol.Schema(
CONDITION_SCHEMA = vol.Any(
vol.Schema(
{
vol.Optional("target"): selector.TargetSelector.CONFIG_SCHEMA,
vol.Optional("fields"): vol.Schema({str: FIELD_SCHEMA}),
}
),

View File

@@ -21,6 +21,9 @@ CONDITION_DESCRIPTIONS = {
"valid": {
CONDITION_DESCRIPTION_FILENAME: """
_:
target:
entity:
domain: light
fields:
after:
example: sunrise