Mock the API client in the ESPHome websocket API test (#179841)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Paulus Schoutsen
2026-08-22 12:20:41 -05:00
committed by GitHub
co-authored by Claude
parent a3394bb7ef
commit eda26b33a0
@@ -1,5 +1,7 @@
"""Tests for ESPHome websocket API."""
from aioesphomeapi import APIClient
from homeassistant.components.esphome.const import CONF_NOISE_PSK
from homeassistant.components.esphome.websocket_api import ENTRY_ID, TYPE
@@ -8,6 +10,7 @@ from tests.typing import WebSocketGenerator
async def test_get_encryption_key(
mock_client: APIClient,
init_integration: MockConfigEntry,
hass_ws_client: WebSocketGenerator,
) -> None: