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 correctionpull/13692/head^2
parent
61a3b4ffdb
commit
63820a78d9
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue