mirror of
https://github.com/home-assistant/core.git
synced 2026-08-23 14:43:52 +01:00
Mock the API client in the ESPHome websocket API test (#179841)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
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:
|
||||
|
||||
Reference in New Issue
Block a user