Skip to content

Commit 34544e3

Browse files
9gelppaeps
authored andcommitted
make flake8 happy
1 parent 1107391 commit 34544e3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dsl_buttons/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import hid
66
import redis
77
import serial
8-
import signal
98
import sys
109
import time
1110

@@ -59,11 +58,11 @@ async def doorlight():
5958
lighton = p.value == 1
6059
try:
6160
while True:
62-
if p.value == 0 and lighton == True:
61+
if p.value == 0 and lighton is True:
6362
s.write(b"X") # turn off all lights
6463
lighton = False
6564
print("door closed", flush=True)
66-
if p.value == 1 and lighton == False:
65+
if p.value == 1 and lighton is False:
6766
s.write(b"G") # set lights to green
6867
lighton = True
6968
await asyncio.sleep(0.3)

0 commit comments

Comments
 (0)