Fix luci device_tracker when release is none (#40524)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
pull/40571/head
cagnulein 2020-09-25 09:06:24 +02:00 committed by Franck Nijhof
parent ff39cd753c
commit a404c51797
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 1 additions and 0 deletions

View File

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