Add type hints for FixtureRequest in tests (#118779)
This commit is contained in:
parent
16fd19f01a
commit
b54a68750b
27 changed files with 67 additions and 36 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue