Add missing hass type hint in component tests (i) (#124216)

This commit is contained in:
epenet 2024-08-19 12:40:17 +02:00 committed by GitHub
parent 057f31132b
commit f0af33bd2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 63 additions and 33 deletions

View file

@ -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()