1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Improve type hints in tests (a-h) (#118379)

This commit is contained in:
epenet
2024-05-30 08:46:18 +02:00
committed by GitHub
parent 4893faa671
commit 092cdcfe91
13 changed files with 66 additions and 34 deletions

View File

@@ -19,11 +19,17 @@ from homeassistant.util import dt as dt_util, location
from homeassistant.util.unit_system import US_CUSTOMARY_SYSTEM
from tests.common import MockUser
from tests.typing import ClientSessionGenerator, WebSocketGenerator
from tests.typing import (
ClientSessionGenerator,
MockHAClientWebSocket,
WebSocketGenerator,
)
@pytest.fixture
async def client(hass, hass_ws_client):
async def client(
hass: HomeAssistant, hass_ws_client: WebSocketGenerator
) -> MockHAClientWebSocket:
"""Fixture that can interact with the config manager API."""
with patch.object(config, "SECTIONS", [core]):
assert await async_setup_component(hass, "config", {})