From 63820a78d95f364581f7d7f175a000eeb2030e29 Mon Sep 17 00:00:00 2001 From: shuaiger Date: Fri, 6 Apr 2018 00:00:40 +0800 Subject: [PATCH] Fix asuswrt ap mode failure (#13693) * fix asuswrt ap mode failure When using ap mode, asuswrt device_tracker does dont work properly as ip can not be retrieved from wl command. This version fixed the issue. * save 1 line code * another 2 lines saved * typo correction --- homeassistant/components/device_tracker/asuswrt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/device_tracker/asuswrt.py b/homeassistant/components/device_tracker/asuswrt.py index 14aea561c8e..5b8e173aba4 100644 --- a/homeassistant/components/device_tracker/asuswrt.py +++ b/homeassistant/components/device_tracker/asuswrt.py @@ -172,7 +172,7 @@ class AsusWrtDeviceScanner(DeviceScanner): ret_devices = {} for key in devices: - if devices[key].ip is not None: + if self.mode == 'ap' or devices[key].ip is not None: ret_devices[key] = devices[key] return ret_devices