mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
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
This commit is contained in:
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…
x
Reference in New Issue
Block a user