Fix luci device_tracker incorrectly reporting devices status (#40409)

This commit is contained in:
cagnulein 2020-09-22 10:53:46 +02:00 committed by GitHub
parent d5741a5ba4
commit 8bff25fedd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,11 @@ class LuciDeviceScanner(DeviceScanner):
last_results = []
for device in result:
if device.reachable:
if (
not hasattr(self.router.router.owrt_version, "release")
or self.router.router.owrt_version.release[0] < 19
or device.reachable
):
last_results.append(device)
self.last_results = last_results