Tear down evict_faked_translations before counting hass objects

This commit is contained in:
Erik
2025-05-01 11:19:51 +02:00
parent 156ce39202
commit ab5f20aa69

View File

@@ -1352,7 +1352,9 @@ def translations_once() -> Generator[_patch]:
@pytest.fixture(autouse=True, scope="module") @pytest.fixture(autouse=True, scope="module")
def evict_faked_translations(translations_once) -> Generator[_patch]: def evict_faked_translations(
garbage_collection, translations_once
) -> Generator[_patch]:
"""Clear translations for mocked integrations from the cache after each module.""" """Clear translations for mocked integrations from the cache after each module."""
real_component_strings = translation_helper._async_get_component_strings real_component_strings = translation_helper._async_get_component_strings
with patch( with patch(