diff --git a/homeassistant/components/synology_srm/__init__.py b/homeassistant/components/synology_srm/__init__.py index cd77bce1014..72fd0c17821 100644 --- a/homeassistant/components/synology_srm/__init__.py +++ b/homeassistant/components/synology_srm/__init__.py @@ -1 +1 @@ -"""The synology_srm component.""" +"""The Synology SRM component.""" diff --git a/homeassistant/components/synology_srm/device_tracker.py b/homeassistant/components/synology_srm/device_tracker.py index af7a3ea5f63..55f455ad7cc 100644 --- a/homeassistant/components/synology_srm/device_tracker.py +++ b/homeassistant/components/synology_srm/device_tracker.py @@ -132,7 +132,11 @@ class SynologySrmDeviceScanner(DeviceScanner): """Check the router for connected devices.""" _LOGGER.debug("Scanning for connected devices") - self.devices = self.client.core.network_nsm_device({"is_online": True}) + try: + self.devices = self.client.core.get_network_nsm_device({"is_online": True}) + except synology_srm.http.SynologyException as ex: + _LOGGER.error("Error with the Synology SRM: %s", ex) + return False _LOGGER.debug("Found %d device(s) connected to the router", len(self.devices)) diff --git a/homeassistant/components/synology_srm/manifest.json b/homeassistant/components/synology_srm/manifest.json index d92759e5eec..798d7e7ef82 100644 --- a/homeassistant/components/synology_srm/manifest.json +++ b/homeassistant/components/synology_srm/manifest.json @@ -2,6 +2,6 @@ "domain": "synology_srm", "name": "Synology SRM", "documentation": "https://www.home-assistant.io/integrations/synology_srm", - "requirements": ["synology-srm==0.0.7"], + "requirements": ["synology-srm==0.2.0"], "codeowners": ["@aerialls"] } diff --git a/requirements_all.txt b/requirements_all.txt index 39b9d1efc5f..25d76e07c66 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1987,7 +1987,7 @@ surepy==0.2.3 swisshydrodata==0.0.3 # homeassistant.components.synology_srm -synology-srm==0.0.7 +synology-srm==0.2.0 # homeassistant.components.tahoma tahoma-api==0.0.16