Add diagnostics to devolo Home Control (#86069)

* Add diagnostics to devolo Home Control

* Apply feedback
This commit is contained in:
Guido Schmitz 2023-05-05 21:24:42 +02:00 committed by GitHub
parent 774f1c8ef9
commit 2b3f7ad70d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 119 additions and 0 deletions

View file

@ -115,6 +115,8 @@ class DeviceMock(Zwave):
self.brand = "devolo"
self.name = "Test Device"
self.uid = "Test"
self.device_model_uid = "Test"
self.device_type = "Test"
self.settings_property = {"general_device_settings": SettingsMock()}
self.href = "https://www.mydevolo.com"
@ -252,6 +254,9 @@ class HomeControlMock(HomeControl):
"""Initialize the mock."""
self.devices = {}
self.publisher = MagicMock()
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."""