1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

validation should happen sooner

This commit is contained in:
J. Nick Koston
2025-06-22 21:18:04 +02:00
parent d3b18debf9
commit 2b9b7e2853
2 changed files with 62 additions and 85 deletions

View File

@@ -205,7 +205,10 @@ def test_device_with_invalid_area_id(
# Check for the specific error message in stdout
captured = capsys.readouterr()
assert "Couldn't find ID 'nonexistent_area'" in captured.out
assert (
"Device 'Test Device' has an area_id 'nonexistent_area' that does not exist."
in captured.out
)
def test_device_id_hash_collision(