From ab5f20aa691130948ed046f27f309e3894c66a96 Mon Sep 17 00:00:00 2001 From: Erik Date: Thu, 1 May 2025 11:19:51 +0200 Subject: [PATCH] Tear down evict_faked_translations before counting hass objects --- tests/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index ca5c2004539..e9b0b5b4756 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1352,7 +1352,9 @@ def translations_once() -> Generator[_patch]: @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.""" real_component_strings = translation_helper._async_get_component_strings with patch(