1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add test for HA stop to devolo Home Control (#116682)

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
This commit is contained in:
Guido Schmitz
2024-05-03 13:36:15 +02:00
committed by GitHub
parent 28ab45d5d8
commit 79d50a0685
2 changed files with 19 additions and 3 deletions

View File

@@ -257,9 +257,7 @@ class HomeControlMock(HomeControl):
self.gateway = MagicMock()
self.gateway.local_connection = True
self.gateway.firmware_version = "8.94.0"
def websocket_disconnect(self, event: str = "") -> None:
"""Mock disconnect of the websocket."""
self.websocket_disconnect = MagicMock()
class HomeControlMockBinarySensor(HomeControlMock):