Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/package_constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 13 additions & 9 deletions tests/components/shopping_list/conftest.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading