Closed trisk closed 7 years ago
Forcing the MAC search against a lowercase buffer should fix it:
if match.group('mac').lower() in arp.decode('utf-8').lower():
arp_match = _ARP_REGEX.search(arp.decode('utf-8').lower())
If you have tested that your fix solves the problem, you can make a pull request to fix the problem?
Home Assistant release (
hass --version
): 0.34.2Python release (
python3 --version
): Python 3.4.2Component/platform: device_tracker.asuswrt
Description of problem: When mode is
ap
, we are unable to detect connected devices on recent AsusWRT-Merlin releases. This is because the regex for matching MAC addresses in expects lowercase output fromarp -n
when the lines actually look like:Expected: Devices are detected and written out.
Problem-relevant
configuration.yaml
entries and steps to reproduce:asuswrt
device tracker with modeap
.arp -n
output.