diff --git a/requirements.txt b/requirements.txt index 949ebf3..97bcf54 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ colorlog==6.10.1 -pytest-homeassistant-custom-component==0.13.319 +pytest-homeassistant-custom-component==0.13.326 pip>=26.0,<27 lxml>=4.9.1 beautifulsoup4>=4.12.2 diff --git a/tests/conftest.py b/tests/conftest.py index e4c4439..5f9328c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -145,7 +145,8 @@ async def coordinator( scraper=scraper, update_interval=timedelta(seconds=60), ) - return coordinator + yield coordinator + await coordinator.async_shutdown() @pytest.fixture diff --git a/tests/test_coordinator.py b/tests/test_coordinator.py index 250fbd9..b0d204d 100644 --- a/tests/test_coordinator.py +++ b/tests/test_coordinator.py @@ -196,6 +196,8 @@ async def test_coordinator_with_zero_scan_interval( assert scraper._data == "Manual Update" assert coordinator.last_update_success + await coordinator.async_shutdown() + # ============================================================================ # Retry logic tests (scan_interval=0)