Better netgear logging

This commit is contained in:
Paulus Schoutsen 2016-03-14 21:12:42 -07:00
parent 663e4d57d9
commit cde05b91ce

View file

@ -89,4 +89,9 @@ class NetgearDeviceScanner(object):
with self.lock:
_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 []