Skip to content
Snippets Groups Projects
Commit bc646070 authored by Albert Lee's avatar Albert Lee Committed by Paulus Schoutsen
Browse files

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

parent 64290d74
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment