Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions script/hassfest/conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def exists(value: Any) -> Any:
CONDITION_SCHEMA = vol.Any(
vol.Schema(
{
vol.Optional("target"): selector.TargetSelector.CONFIG_SCHEMA,
vol.Optional("fields"): vol.Schema({str: FIELD_SCHEMA}),
}
),
Expand Down
3 changes: 3 additions & 0 deletions tests/hassfest/test_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"valid": {
CONDITION_DESCRIPTION_FILENAME: """
_:
target:
entity:
domain: light
fields:
after:
example: sunrise
Expand Down
Loading