Match uppercase MAC addresses in asuswrt 'arp -n' output (#4742) (#4764)

This commit is contained in:
Albert Lee 2016-12-06 00:20:21 -06:00 committed by Paulus Schoutsen
parent 64290d74f0
commit bc646070c8

View File

@ -286,8 +286,10 @@ class AsusWrtDeviceScanner(object):
# match mac addresses to IP addresses in ARP table
for arp in result.arp:
if match.group('mac').lower() in arp.decode('utf-8'):
arp_match = _ARP_REGEX.search(arp.decode('utf-8'))
if match.group('mac').lower() in \
arp.decode('utf-8').lower():
arp_match = _ARP_REGEX.search(
arp.decode('utf-8').lower())
if not arp_match:
_LOGGER.warning('Could not parse arp row: %s', arp)
continue