Add trigger selector for blueprint (#103050)

This commit is contained in:
Paul Bottein 2023-11-03 09:11:49 +01:00 committed by GitHub
parent f5cc4dcf3e
commit 89a9e6c6e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 1 deletions

View file

@ -1074,3 +1074,27 @@ def test_condition_selector_schema(
) -> None:
"""Test condition sequence selector."""
_test_selector("condition", schema, valid_selections, invalid_selections)
@pytest.mark.parametrize(
("schema", "valid_selections", "invalid_selections"),
(
(
{},
(
[
{
"platform": "numeric_state",
"entity_id": ["sensor.temperature"],
"below": 20,
}
],
[],
),
("abc"),
),
),
)
def test_trigger_selector_schema(schema, valid_selections, invalid_selections) -> None:
"""Test trigger sequence selector."""
_test_selector("trigger", schema, valid_selections, invalid_selections)