Add type hints for FixtureRequest in tests (#118779)

This commit is contained in:
epenet 2024-06-04 10:37:54 +02:00 committed by GitHub
parent 16fd19f01a
commit b54a68750b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 67 additions and 36 deletions

View file

@ -1,5 +1,6 @@
"""Tests for ScreenLogic integration service calls."""
from collections.abc import AsyncGenerator
from typing import Any
from unittest.mock import DEFAULT, AsyncMock, patch
@ -49,10 +50,10 @@ def dataset_fixture():
@pytest.fixture(name="service_fixture")
async def setup_screenlogic_services_fixture(
hass: HomeAssistant,
request,
request: pytest.FixtureRequest,
device_registry: dr.DeviceRegistry,
mock_config_entry: MockConfigEntry,
):
) -> AsyncGenerator[dict[str, Any], None]:
"""Define the setup for a patched screenlogic integration."""
data = (
marker.args[0]