mirror of
https://github.com/home-assistant/core.git
synced 2025-11-10 11:29:46 +00:00
Add type hints to integration tests (part 8) (#87982)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user