mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +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."""
|
"""Lamarzocco session fixtures."""
|
||||||
|
|
||||||
from collections.abc import Callable, Generator
|
from collections.abc import Generator
|
||||||
import json
|
import json
|
||||||
from unittest.mock import MagicMock, patch
|
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.GATEWAY].latest_version = "v3.5-rc3"
|
||||||
lamarzocco.firmware[FirmwareType.MACHINE].latest_version = "1.55"
|
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
|
yield lamarzocco
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user