mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Improve hass_ws_client type hint in tests (#89703)
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
"""Test function in __init__.py."""
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import Awaitable, Callable
|
||||
|
||||
from aiohttp import ClientWebSocketResponse
|
||||
from mysensors import BaseSyncGateway
|
||||
from mysensors.sensor import Sensor
|
||||
|
||||
@@ -13,6 +10,7 @@ from homeassistant.helpers import device_registry as dr, entity_registry as er
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
from tests.typing import WebSocketGenerator
|
||||
|
||||
|
||||
async def test_remove_config_entry_device(
|
||||
@@ -20,7 +18,7 @@ async def test_remove_config_entry_device(
|
||||
gps_sensor: Sensor,
|
||||
integration: MockConfigEntry,
|
||||
gateway: BaseSyncGateway,
|
||||
hass_ws_client: Callable[[HomeAssistant], Awaitable[ClientWebSocketResponse]],
|
||||
hass_ws_client: WebSocketGenerator,
|
||||
) -> None:
|
||||
"""Test that a device can be removed ok."""
|
||||
entity_id = "sensor.gps_sensor_1_1"
|
||||
|
||||
Reference in New Issue
Block a user