1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-17 02:32:20 +01:00
This commit is contained in:
J. Nick Koston
2025-06-24 18:00:10 +02:00
parent ac0b0b652e
commit 66201be5ca
2 changed files with 6 additions and 10 deletions

View File

@@ -28,13 +28,6 @@ def yaml_file(tmp_path: Path) -> Callable[[str], str]:
return _yaml_file
@pytest.fixture(autouse=True)
def reset_core():
"""Reset CORE after each test."""
yield
CORE.reset()
def load_config_from_yaml(
yaml_file: Callable[[str], str], yaml_content: str
) -> Config | None:
@@ -61,7 +54,7 @@ def load_config_from_fixture(
def test_validate_area_config_with_string() -> None:
"""Test that string area config is converted to structured format."""
result: dict[str, Any] = validate_area_config("Living Room")
result = validate_area_config("Living Room")
assert isinstance(result, dict)
assert "id" in result
@@ -80,7 +73,7 @@ def test_validate_area_config_with_dict() -> None:
"name": "Test Area",
}
result: dict[str, Any] = validate_area_config(input_config)
result = validate_area_config(input_config)
assert result == input_config
assert result["id"] == area_id