mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
disable pylint warning, use correct format for mac addresses
This commit is contained in:
parent
e5147235cc
commit
abea8a2ff4
@ -88,6 +88,7 @@ class TplinkDeviceScanner(object):
|
|||||||
|
|
||||||
return self.last_results
|
return self.last_results
|
||||||
|
|
||||||
|
# pylint: disable=no-self-use
|
||||||
def get_device_name(self, device):
|
def get_device_name(self, device):
|
||||||
""" The TP-Link firmware doesn't save the name of the wireless
|
""" The TP-Link firmware doesn't save the name of the wireless
|
||||||
device. """
|
device. """
|
||||||
@ -110,10 +111,7 @@ class TplinkDeviceScanner(object):
|
|||||||
result = self.parse_macs.findall(page.text)
|
result = self.parse_macs.findall(page.text)
|
||||||
|
|
||||||
if result:
|
if result:
|
||||||
self.last_results = []
|
self.last_results = [mac.replace("-", ":") for mac in result]
|
||||||
for device_entry in result:
|
|
||||||
self.last_results.append(device_entry)
|
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user