File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class StreamDeck(ABC):
78
78
DECK_VISUAL = False
79
79
DECK_TOUCH = False
80
80
81
- def __init__ (self , device , resume_from_suspend : bool = True ):
81
+ def __init__ (self , device ):
82
82
self .device = device
83
83
self .last_key_states = [False ] * (self .KEY_COUNT + self .TOUCH_KEY_COUNT )
84
84
self .last_dial_states = [False ] * self .DIAL_COUNT
@@ -280,7 +280,7 @@ def _setup_reader(self, callback):
280
280
self .read_thread .daemon = True
281
281
self .read_thread .start ()
282
282
283
- def open (self ):
283
+ def open (self , resume_from_suspend : bool = True ):
284
284
"""
285
285
Opens the device for input/output. This must be called prior to setting
286
286
or retrieving any device state.
@@ -290,7 +290,7 @@ def open(self):
290
290
self .device .open ()
291
291
292
292
self ._reset_key_stream ()
293
- if self . resume_from_suspend :
293
+ if resume_from_suspend :
294
294
self ._setup_reader (self ._read_with_resume_from_suspend )
295
295
else :
296
296
self ._setup_reader (self ._read )
You can’t perform that action at this time.
0 commit comments