diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 742723648323e..2135a47d4db5c 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -6,7 +6,7 @@ aiodns==3.6.1 aiohasupervisor==0.3.3 aiohttp-asyncmdnsresolver==0.1.1 aiohttp-fast-zlib==0.3.0 -aiohttp==3.13.2 +aiohttp==3.13.3 aiohttp_cors==0.8.1 aiousbwatcher==1.1.1 aiozoneinfo==0.2.3 diff --git a/pyproject.toml b/pyproject.toml index 57652bc36aa4a..127b9e18f5892 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,7 +29,7 @@ dependencies = [ # change behavior based on presence of supervisor. Deprecated with #127228 # Lib can be removed with 2025.11 "aiohasupervisor==0.3.3", - "aiohttp==3.13.2", + "aiohttp==3.13.3", "aiohttp_cors==0.8.1", "aiohttp-fast-zlib==0.3.0", "aiohttp-asyncmdnsresolver==0.1.1", diff --git a/requirements.txt b/requirements.txt index bc7d83e3f2236..84da49c2b3ffa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ aiodns==3.6.1 aiohasupervisor==0.3.3 aiohttp-asyncmdnsresolver==0.1.1 aiohttp-fast-zlib==0.3.0 -aiohttp==3.13.2 +aiohttp==3.13.3 aiohttp_cors==0.8.1 aiozoneinfo==0.2.3 annotatedyaml==1.0.2 diff --git a/tests/components/shopping_list/conftest.py b/tests/components/shopping_list/conftest.py index 69d214efe18c7..f1efbfe6ab7c1 100644 --- a/tests/components/shopping_list/conftest.py +++ b/tests/components/shopping_list/conftest.py @@ -1,25 +1,29 @@ """Shopping list test helpers.""" from collections.abc import Generator -from contextlib import suppress -import os +from pathlib import Path +from unittest.mock import patch import pytest -from homeassistant.components.shopping_list import intent as sl_intent +from homeassistant.components.shopping_list import PERSISTENCE, intent as sl_intent from homeassistant.core import HomeAssistant from tests.common import MockConfigEntry @pytest.fixture(autouse=True) -def wipe_shopping_list_store(hass: HomeAssistant) -> Generator[None]: - """Wipe shopping list store after test.""" - try: +def shopping_list_tmp_path(tmp_path: Path, hass: HomeAssistant) -> Generator[None]: + """Use a unique temp directory for shopping list storage per test.""" + orig_path = hass.config.path + + def _mock_path(*args: str) -> str: + if args == (PERSISTENCE,): + return str(tmp_path / PERSISTENCE) + return orig_path(*args) + + with patch.object(hass.config, "path", _mock_path): yield - finally: - with suppress(FileNotFoundError): - os.remove(hass.config.path(".shopping_list.json")) @pytest.fixture