Add type hints to integration tests (part 8) (#87982)

This commit is contained in:
epenet
2023-02-13 11:13:48 +01:00
committed by GitHub
parent 575f7c4205
commit 89e4ee5320
50 changed files with 696 additions and 339 deletions

View File

@@ -10,8 +10,12 @@ from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component
import homeassistant.util.dt as dt_util
from tests.typing import WebSocketGenerator
async def test_board_info(hass: HomeAssistant, hass_ws_client) -> None:
async def test_board_info(
hass: HomeAssistant, hass_ws_client: WebSocketGenerator
) -> None:
"""Test we can get the board info."""
assert await async_setup_component(hass, DOMAIN, {})
@@ -28,7 +32,9 @@ async def test_board_info(hass: HomeAssistant, hass_ws_client) -> None:
TEST_TIME_ADVANCE_INTERVAL = datetime.timedelta(seconds=5 + 1)
async def test_system_status_subscription(hass: HomeAssistant, hass_ws_client, freezer):
async def test_system_status_subscription(
hass: HomeAssistant, hass_ws_client: WebSocketGenerator, freezer
) -> None:
"""Test websocket system status subscription."""
mock_psutil = None