mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Improve config validation for key_value_schemas (#49429)
This commit is contained in:
@@ -1024,7 +1024,7 @@ def test_key_value_schemas():
|
||||
schema(True)
|
||||
assert str(excinfo.value) == "Expected a dictionary"
|
||||
|
||||
for mode in None, "invalid":
|
||||
for mode in None, {"a": "dict"}, "invalid":
|
||||
with pytest.raises(vol.Invalid) as excinfo:
|
||||
schema({"mode": mode})
|
||||
assert (
|
||||
|
||||
Reference in New Issue
Block a user