mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Add selectors for text and arbitrary objects (#45112)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
@@ -169,3 +169,21 @@ def test_target_selector_schema(schema):
|
||||
def test_action_selector_schema(schema):
|
||||
"""Test action sequence selector."""
|
||||
selector.validate_selector({"action": schema})
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"schema",
|
||||
({},),
|
||||
)
|
||||
def test_object_selector_schema(schema):
|
||||
"""Test object selector."""
|
||||
selector.validate_selector({"object": schema})
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"schema",
|
||||
({}, {"multiline": True}, {"multiline": False}),
|
||||
)
|
||||
def test_text_selector_schema(schema):
|
||||
"""Test text selector."""
|
||||
selector.validate_selector({"text": schema})
|
||||
|
||||
Reference in New Issue
Block a user