File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ async def _handle_stick_event(self, event: StickEvent) -> None:
151151 elif event == StickEvent .DISCONNECTED and self ._queue .is_running :
152152 await self ._queue .stop ()
153153
154- async def initialize_stick (self ) -> None :
154+ async def initialize_stick (self , node_info = True ) -> None :
155155 """Initialize connection to the USB-stick."""
156156 if not self ._manager .is_connected :
157157 raise StickError (
@@ -187,7 +187,10 @@ async def initialize_stick(self) -> None:
187187
188188 self ._is_initialized = True
189189
190- # Add Stick NodeInfoRequest
190+ if not node_info :
191+ return
192+
193+ # Collect Stick NodeInfo
191194 node_info , _ = await self .get_node_details (self ._mac_stick , ping_first = False )
192195 if node_info is not None :
193196 self ._fw_stick = node_info .firmware # type: ignore
@@ -223,7 +226,7 @@ async def pair_plus_device(self, mac: str) -> bool:
223226
224227 # Init Stick
225228 try :
226- await self .initialize_stick ()
229+ await self .initialize_stick (node_info = False )
227230 except StickError as exc :
228231 raise NodeError (
229232 f"Pairing failed, failed to initialize Stick: { exc } "
You can’t perform that action at this time.
0 commit comments