From abea8a2ff4700b6017e1c9b78987d5b5aa304170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Arnauts?= Date: Fri, 19 Jun 2015 20:58:01 +0200 Subject: [PATCH] disable pylint warning, use correct format for mac addresses --- homeassistant/components/device_tracker/tplink.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/device_tracker/tplink.py b/homeassistant/components/device_tracker/tplink.py index 9bc756d745a..24d170a5de7 100755 --- a/homeassistant/components/device_tracker/tplink.py +++ b/homeassistant/components/device_tracker/tplink.py @@ -88,6 +88,7 @@ class TplinkDeviceScanner(object): return self.last_results + # pylint: disable=no-self-use def get_device_name(self, device): """ The TP-Link firmware doesn't save the name of the wireless device. """ @@ -110,10 +111,7 @@ class TplinkDeviceScanner(object): result = self.parse_macs.findall(page.text) if result: - self.last_results = [] - for device_entry in result: - self.last_results.append(device_entry) - + self.last_results = [mac.replace("-", ":") for mac in result] return True return False