Skip to content

Commit 36da9ba

Browse files
committed
style: fix flake8 E122 continuation indent in pinAirocon
Replace the unindented backslash line-continuations with a parenthesized expression aligned to the opening bracket. Value is unchanged (verified against the original formula). Keeps the CI flake8 lint job green.
1 parent 50ab06b commit 36da9ba

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

oneshot.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,13 @@ def pinASUS(self, mac):
336336

337337
def pinAirocon(self, mac):
338338
b = [int(i, 16) for i in mac.string.split(':')]
339-
pin = ((b[0] + b[1]) % 10)\
340-
+ (((b[5] + b[0]) % 10) * 10)\
341-
+ (((b[4] + b[5]) % 10) * 100)\
342-
+ (((b[3] + b[4]) % 10) * 1000)\
343-
+ (((b[2] + b[3]) % 10) * 10000)\
344-
+ (((b[1] + b[2]) % 10) * 100000)\
345-
+ (((b[0] + b[1]) % 10) * 1000000)
339+
pin = (((b[0] + b[1]) % 10)
340+
+ (((b[5] + b[0]) % 10) * 10)
341+
+ (((b[4] + b[5]) % 10) * 100)
342+
+ (((b[3] + b[4]) % 10) * 1000)
343+
+ (((b[2] + b[3]) % 10) * 10000)
344+
+ (((b[1] + b[2]) % 10) * 100000)
345+
+ (((b[0] + b[1]) % 10) * 1000000))
346346
return pin
347347

348348

0 commit comments

Comments
 (0)