mirror of
https://github.com/home-assistant/core.git
synced 2025-06-25 01:21:51 +02:00
feat(synology-srm): update to latest version and improve errors (#34144)
This commit is contained in:
@ -1 +1 @@
|
||||
"""The synology_srm component."""
|
||||
"""The Synology SRM component."""
|
||||
|
@ -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))
|
||||
|
||||
|
@ -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"]
|
||||
}
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user