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
pull/13692/head^2
shuaiger 2018-04-06 00:00:40 +08:00 committed by Fabian Affolter
parent 61a3b4ffdb
commit 63820a78d9
1 changed files with 1 additions and 1 deletions

View File

@ -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