mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 12:30:31 +00:00
Improve type hints in tests (a-h) (#118379)
This commit is contained in:
@@ -109,14 +109,16 @@ async def mock_http_client(
|
||||
|
||||
@pytest.fixture
|
||||
async def themes_ws_client(
|
||||
hass: HomeAssistant, hass_ws_client: ClientSessionGenerator, frontend_themes
|
||||
) -> TestClient:
|
||||
hass: HomeAssistant, hass_ws_client: WebSocketGenerator, frontend_themes
|
||||
) -> MockHAClientWebSocket:
|
||||
"""Start the Home Assistant HTTP component."""
|
||||
return await hass_ws_client(hass)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
async def ws_client(hass, hass_ws_client, frontend):
|
||||
async def ws_client(
|
||||
hass: HomeAssistant, hass_ws_client: WebSocketGenerator, frontend
|
||||
) -> MockHAClientWebSocket:
|
||||
"""Start the Home Assistant HTTP component."""
|
||||
return await hass_ws_client(hass)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user