File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,7 @@ def __init__(self) -> None:
2424 self ._manager = StickConnectionManager ()
2525 self ._queue = StickQueue ()
2626 self ._unsubscribe_stick_event : Callable [[], None ] | None = None
27-
2827 self ._init_sequence_id : bytes | None = None
29-
3028 self ._is_initialized = False
3129 self ._mac_stick : str | None = None
3230 self ._mac_nc : str | None = None
@@ -90,11 +88,9 @@ async def connect_to_stick(self, serial_path: str) -> None:
9088 raise StickError ("Already connected" )
9189 await self ._manager .setup_connection_to_stick (serial_path )
9290 if self ._unsubscribe_stick_event is None :
93- self ._unsubscribe_stick_event = (
94- self ._manager .subscribe_to_stick_events (
95- self ._handle_stick_event ,
96- (StickEvent .CONNECTED , StickEvent .DISCONNECTED ),
97- )
91+ self ._unsubscribe_stick_event = self ._manager .subscribe_to_stick_events (
92+ self ._handle_stick_event ,
93+ (StickEvent .CONNECTED , StickEvent .DISCONNECTED ),
9894 )
9995 self ._queue .start (self ._manager )
10096
You can’t perform that action at this time.
0 commit comments