mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
This commit is contained in:
parent
64290d74f0
commit
bc646070c8
@ -286,8 +286,10 @@ class AsusWrtDeviceScanner(object):
|
|||||||
|
|
||||||
# match mac addresses to IP addresses in ARP table
|
# match mac addresses to IP addresses in ARP table
|
||||||
for arp in result.arp:
|
for arp in result.arp:
|
||||||
if match.group('mac').lower() in arp.decode('utf-8'):
|
if match.group('mac').lower() in \
|
||||||
arp_match = _ARP_REGEX.search(arp.decode('utf-8'))
|
arp.decode('utf-8').lower():
|
||||||
|
arp_match = _ARP_REGEX.search(
|
||||||
|
arp.decode('utf-8').lower())
|
||||||
if not arp_match:
|
if not arp_match:
|
||||||
_LOGGER.warning('Could not parse arp row: %s', arp)
|
_LOGGER.warning('Could not parse arp row: %s', arp)
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user