File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 9090}
9191
9292TYPE_MODEL : Final [dict [int , tuple [str ]]] = {
93- 0 : ("Stick" ),
93+ 0 : ("Stick" , ),
9494 1 : ("Circle" , "Stealth" ),
95- 3 : ("Switch" ),
96- 4 : (),
97- 5 : ("Sense" ),
98- 6 : ("Scan" ),
99- 7 : ("Celsius" ),
100- 8 : ("Celsius" ),
101- 9 : ("Stealth" ),
95+ 3 : ("Switch" ,),
96+ 5 : ("Sense" ,),
97+ 6 : ("Scan" ,),
98+ 7 : ("Celsius" ,),
99+ 8 : ("Celsius" ,),
100+ 9 : ("Stealth" ,),
102101}
Original file line number Diff line number Diff line change @@ -511,9 +511,9 @@ async def update_node_details(
511511 # Switch reports hardware version of paired Circle (pw_usb_beta #245)
512512 if self ._node_info .node_type is not None :
513513 allowed_models = TYPE_MODEL .get (self ._node_info .node_type .value )
514- if allowed_models is not None and model_info [0 ] not in allowed_models :
514+ if allowed_models and model_info [0 ] not in allowed_models :
515515 # Replace model_info list
516- model_info = [allowed_models [0 ]] # Not Ok for 1 but should not be a problem
516+ model_info = [allowed_models [0 ]] # Not correct for 1 but should not be a problem
517517 self ._node_info .model = model_info [0 ]
518518
519519 # Handle + devices
You can’t perform that action at this time.
0 commit comments