From 9678752480be670f4ea3768b852422770b40aa25 Mon Sep 17 00:00:00 2001 From: Julien Brochet <556303+aerialls@users.noreply.github.com> Date: Mon, 27 May 2019 18:00:21 +0200 Subject: [PATCH] Retrieve wire and wireless devices with the SRM device tracker (#24117) --- homeassistant/components/synology_srm/device_tracker.py | 2 +- homeassistant/components/synology_srm/manifest.json | 4 ++-- requirements_all.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/synology_srm/device_tracker.py b/homeassistant/components/synology_srm/device_tracker.py index 57dbb7134e2..6330b14f7c4 100644 --- a/homeassistant/components/synology_srm/device_tracker.py +++ b/homeassistant/components/synology_srm/device_tracker.py @@ -80,7 +80,7 @@ class SynologySrmDeviceScanner(DeviceScanner): """Check the router for connected devices.""" _LOGGER.debug("Scanning for connected devices") - devices = self.client.mesh.network_wifidevice() + devices = self.client.core.network_nsm_device({'is_online': True}) last_results = [] for device in devices: diff --git a/homeassistant/components/synology_srm/manifest.json b/homeassistant/components/synology_srm/manifest.json index fa89577f26e..a790a6c453c 100644 --- a/homeassistant/components/synology_srm/manifest.json +++ b/homeassistant/components/synology_srm/manifest.json @@ -1,9 +1,9 @@ { "domain": "synology_srm", - "name": "Synology srm", + "name": "Synology SRM", "documentation": "https://www.home-assistant.io/components/synology_srm", "requirements": [ - "synology-srm==0.0.6" + "synology-srm==0.0.7" ], "dependencies": [], "codeowners": [ diff --git a/requirements_all.txt b/requirements_all.txt index d5cff9366b2..c7a2906ae57 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1710,7 +1710,7 @@ sucks==0.9.4 swisshydrodata==0.0.3 # homeassistant.components.synology_srm -synology-srm==0.0.6 +synology-srm==0.0.7 # homeassistant.components.tahoma tahoma-api==0.0.14