forked from home-assistant/core
Reset cache in emulated_hue
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user