From fddab7f2b44e4c0c7b39f2de7ca9ebff15c53765 Mon Sep 17 00:00:00 2001 From: Kyle Hendricks Date: Sun, 29 Jan 2017 03:37:59 -0500 Subject: [PATCH] Fixes the AsusWRT `ip neigh` regex to handle the possible IPv6 "router" flag (#5605) See the last line here: http://linux-ip.net/gl/ip-cref/ip-cref-node62.html --- homeassistant/components/device_tracker/asuswrt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/device_tracker/asuswrt.py b/homeassistant/components/device_tracker/asuswrt.py index 512ccba0b74..e18d560e653 100644 --- a/homeassistant/components/device_tracker/asuswrt.py +++ b/homeassistant/components/device_tracker/asuswrt.py @@ -76,6 +76,7 @@ _IP_NEIGH_REGEX = re.compile( r'\w+\s' r'\w+\s' r'(\w+\s(?P(([0-9a-f]{2}[:-]){5}([0-9a-f]{2}))))?\s' + r'\s?(router)?' r'(?P(\w+))') _NVRAM_CMD = 'nvram get client_info_tmp'