From cde05b91ce843784a018b47f42d2fa19b54c1d0c Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 14 Mar 2016 21:12:42 -0700 Subject: [PATCH] Better netgear logging --- homeassistant/components/device_tracker/netgear.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/device_tracker/netgear.py b/homeassistant/components/device_tracker/netgear.py index f1225d2fb73..6b0cbc5f465 100644 --- a/homeassistant/components/device_tracker/netgear.py +++ b/homeassistant/components/device_tracker/netgear.py @@ -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 []