Skip to content

Commit 63627b7

Browse files
committed
Improve guarding
1 parent 105cade commit 63627b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/nodes/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ async def update_node_details(
504504
model_info = model_info.split(" ")
505505
self._node_info.model = model_info[0]
506506
# Handle + devices
507-
if "+" in model_info[1]:
507+
if len(model_info) > 1 and "+" in model_info[1]:
508508
self._node_info.model = model_info[0] = model_info[0:1]
509509
model_info.pop(1)
510510

0 commit comments

Comments
 (0)