Add wake on LAN via Fritz!Box for tracked devices (#106778)

This commit is contained in:
Chris Bräucker 2024-04-03 18:37:20 +02:00 committed by GitHub
parent 6369b75653
commit 51a3e79048
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 293 additions and 17 deletions

View file

@ -77,13 +77,11 @@ class FritzConnectionMock:
class FritzHostMock(FritzHosts):
"""FritzHosts mocking."""
def get_mesh_topology(self, raw=False):
"""Retrurn mocked mesh data."""
return MOCK_MESH_DATA
get_mesh_topology = MagicMock()
get_mesh_topology.return_value = MOCK_MESH_DATA
def get_hosts_attributes(self):
"""Retrurn mocked host attributes data."""
return MOCK_HOST_ATTRIBUTES_DATA
get_hosts_attributes = MagicMock()
get_hosts_attributes.return_value = MOCK_HOST_ATTRIBUTES_DATA
@pytest.fixture(name="fc_data")