mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Improve entity domain validator (#43164)
This commit is contained in:
@@ -179,7 +179,12 @@ def test_entity_domain():
|
||||
"""Test entity domain validation."""
|
||||
schema = vol.Schema(cv.entity_domain("sensor"))
|
||||
|
||||
for value in ("invalid_entity", "cover.demo"):
|
||||
for value in (
|
||||
"invalid_entity",
|
||||
"cover.demo",
|
||||
"cover.demo,sensor.another_entity",
|
||||
"",
|
||||
):
|
||||
with pytest.raises(vol.MultipleInvalid):
|
||||
schema(value)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user