Reset cache in emulated_hue

This commit is contained in:
Erik
2025-05-07 08:41:44 +02:00
parent 751f97a462
commit 8cd72586ec

View File

@@ -2,7 +2,15 @@
import pytest import pytest
from homeassistant.components.emulated_hue.config import Config
@pytest.fixture(autouse=True, name="stub_blueprint_populate") @pytest.fixture(autouse=True, name="stub_blueprint_populate")
def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None: def stub_blueprint_populate_autouse(stub_blueprint_populate: None) -> None:
"""Stub copying the blueprints to the config folder.""" """Stub copying the blueprints to the config folder."""
@pytest.fixture(autouse=True)
def reset_config_cache() -> None:
"""Reset config cache."""
Config.entity_id_to_number.cache_clear()