Add missing hass type hint in component tests (i) (#124216)
This commit is contained in:
parent
057f31132b
commit
f0af33bd2b
12 changed files with 63 additions and 33 deletions
|
@ -1,6 +1,7 @@
|
|||
"""Test the Insteon All-Link Database APIs."""
|
||||
|
||||
import json
|
||||
from typing import Any
|
||||
from unittest.mock import patch
|
||||
|
||||
from pyinsteon import pub
|
||||
|
@ -23,7 +24,7 @@ from homeassistant.core import HomeAssistant
|
|||
from .mock_devices import MockDevices
|
||||
|
||||
from tests.common import load_fixture
|
||||
from tests.typing import WebSocketGenerator
|
||||
from tests.typing import MockHAClientWebSocket, WebSocketGenerator
|
||||
|
||||
|
||||
@pytest.fixture(name="aldb_data", scope="module")
|
||||
|
@ -32,7 +33,9 @@ def aldb_data_fixture():
|
|||
return json.loads(load_fixture("insteon/aldb_data.json"))
|
||||
|
||||
|
||||
async def _setup(hass, hass_ws_client, aldb_data):
|
||||
async def _setup(
|
||||
hass: HomeAssistant, hass_ws_client: WebSocketGenerator, aldb_data: dict[str, Any]
|
||||
) -> tuple[MockHAClientWebSocket, MockDevices]:
|
||||
"""Set up tests."""
|
||||
ws_client = await hass_ws_client(hass)
|
||||
devices = MockDevices()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue