mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Add config entry selector (#77108)
This commit is contained in:
@@ -285,6 +285,26 @@ def test_boolean_selector_schema(schema, valid_selections, invalid_selections):
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"schema,valid_selections,invalid_selections",
|
||||
(
|
||||
(
|
||||
{},
|
||||
("6b68b250388cbe0d620c92dd3acc93ec", "76f2e8f9a6491a1b580b3a8967c27ddd"),
|
||||
(None, True, 1),
|
||||
),
|
||||
(
|
||||
{"integration": "adguard"},
|
||||
("6b68b250388cbe0d620c92dd3acc93ec", "76f2e8f9a6491a1b580b3a8967c27ddd"),
|
||||
(None, True, 1),
|
||||
),
|
||||
),
|
||||
)
|
||||
def test_config_entry_selector_schema(schema, valid_selections, invalid_selections):
|
||||
"""Test boolean selector."""
|
||||
_test_selector("config_entry", schema, valid_selections, invalid_selections)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"schema,valid_selections,invalid_selections",
|
||||
(({}, ("00:00:00",), ("blah", None)),),
|
||||
|
||||
Reference in New Issue
Block a user