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 1719008 commit 9bc7bfdCopy full SHA for 9bc7bfd
plugwise_usb/nodes/node.py
@@ -511,7 +511,7 @@ async def update_node_details(
511
# Switch reports hardware version of paired Circle (pw_usb_beta #245)
512
if self._node_info.node_type is not None:
513
allowed_models = TYPE_MODEL.get(self._node_info.node_type.value)
514
- if model_info[0] not in allowed_models:
+ if allowed_models is not None and model_info[0] not in allowed_models:
515
# Replace model_info list
516
model_info = [allowed_models[0]] # Not Ok for 1 but should not be a problem
517
self._node_info.model = model_info[0]
0 commit comments