mirror of
https://github.com/home-assistant/core.git
synced 2026-05-14 12:31:04 +01:00
Fix quantum_gateway tests (#168610)
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user