mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix warnings from flake8 and pylint
This commit is contained in:
parent
fc33273464
commit
2c5886f6d4
@ -102,9 +102,11 @@ class LuciDeviceScanner(object):
|
|||||||
params={'auth': self.token})
|
params={'auth': self.token})
|
||||||
if result:
|
if result:
|
||||||
self.last_results = []
|
self.last_results = []
|
||||||
for x in result:
|
for device_entry in result:
|
||||||
# Check if the Flags for each device contain NUD_REACHABLE and if so, add it to last_results
|
# Check if the Flags for each device contain
|
||||||
if int(x['Flags'], 16) & 0x2: self.last_results.append(x['HW address'])
|
# NUD_REACHABLE and if so, add it to last_results
|
||||||
|
if int(device_entry['Flags'], 16) & 0x2:
|
||||||
|
self.last_results.append(device_entry['HW address'])
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user