mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add state selector (#77024)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
@@ -294,6 +294,21 @@ def test_time_selector_schema(schema, valid_selections, invalid_selections):
|
||||
_test_selector("time", schema, valid_selections, invalid_selections)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"schema,valid_selections,invalid_selections",
|
||||
(
|
||||
(
|
||||
{"entity_id": "sensor.abc"},
|
||||
("on", "armed"),
|
||||
(None, True, 1),
|
||||
),
|
||||
),
|
||||
)
|
||||
def test_state_selector_schema(schema, valid_selections, invalid_selections):
|
||||
"""Test state selector."""
|
||||
_test_selector("state", schema, valid_selections, invalid_selections)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"schema,valid_selections,invalid_selections",
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user