Better netgear logging
This commit is contained in:
parent
663e4d57d9
commit
cde05b91ce
1 changed files with 6 additions and 1 deletions
|
@ -89,4 +89,9 @@ class NetgearDeviceScanner(object):
|
||||||
with self.lock:
|
with self.lock:
|
||||||
_LOGGER.info("Scanning")
|
_LOGGER.info("Scanning")
|
||||||
|
|
||||||
self.last_results = self._api.get_attached_devices() or []
|
results = self._api.get_attached_devices()
|
||||||
|
|
||||||
|
if results is None:
|
||||||
|
_LOGGER.warning('Error scanning devices')
|
||||||
|
|
||||||
|
self.last_results = results or []
|
||||||
|
|
Loading…
Add table
Reference in a new issue