We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f49723 commit d6bf249Copy full SHA for d6bf249
dsl_buttons/__init__.py
@@ -38,14 +38,17 @@ def button() -> None:
38
# toggle keep open (i.e. unlock)
39
keepopen = not keepopen
40
if keepopen:
41
+ lastopen = time.time()
42
print(
- "unlock pressed, will open for %d seconds"
43
+ "unlock button pressed, will open for %d seconds"
44
% unlock_max_time,
45
flush=True,
46
)
47
r.publish("door_action", "OPEN")
48
else:
- print("unlock pressed while unlocked, locking", flush=True)
49
+ print(
50
+ "unlock button pressed while unlocked, locking", flush=True
51
+ )
52
r.publish("door_action", "CLOSE")
53
elif d[3] == 0x36: # KEY_COMMA
54
# bell, TODO
0 commit comments