mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Cleanup unnecessary definition in lamarzocco tests (#121655)
This commit is contained in:
parent
fb758bd8b6
commit
7a337ecd1d
@ -1,6 +1,6 @@
|
||||
"""Lamarzocco session fixtures."""
|
||||
|
||||
from collections.abc import Callable, Generator
|
||||
from collections.abc import Generator
|
||||
import json
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
@ -128,14 +128,6 @@ def mock_lamarzocco(device_fixture: MachineModel) -> Generator[MagicMock]:
|
||||
lamarzocco.firmware[FirmwareType.GATEWAY].latest_version = "v3.5-rc3"
|
||||
lamarzocco.firmware[FirmwareType.MACHINE].latest_version = "1.55"
|
||||
|
||||
async def websocket_connect_mock(
|
||||
notify_callback: Callable | None,
|
||||
) -> None:
|
||||
"""Mock the websocket connect method."""
|
||||
return None
|
||||
|
||||
lamarzocco.websocket_connect = websocket_connect_mock
|
||||
|
||||
yield lamarzocco
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user