From b5caabcbae10f79cd4b573f52c5de7eeea3d8fc7 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Mon, 20 Apr 2026 13:37:37 +0200 Subject: [PATCH] Fix quantum_gateway tests (#168610) --- tests/components/quantum_gateway/conftest.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/components/quantum_gateway/conftest.py b/tests/components/quantum_gateway/conftest.py index b2445813023..d883e1f55ce 100644 --- a/tests/components/quantum_gateway/conftest.py +++ b/tests/components/quantum_gateway/conftest.py @@ -6,6 +6,16 @@ from unittest.mock import AsyncMock, patch import pytest +@pytest.fixture +def hass_config_dir(hass_tmp_config_dir: str) -> str: + """Use temporary config directory for device_tracker tests. + + This fixture can be removed when the legacy YAML writing has been removed + from the device tracker integration. + """ + return hass_tmp_config_dir + + @pytest.fixture async def mock_scanner() -> Generator[AsyncMock]: """Mock QuantumGatewayScanner instance."""