Skip to content

Commit faa1aae

Browse files
committed
Handle Stealth M+ model correctly
1 parent 19d2a60 commit faa1aae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugwise_usb/nodes/node.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,12 @@ async def update_node_details(
503503
hardware, model_info = version_to_model(hardware)
504504
model_info = model_info.split(" ")
505505
self._node_info.model = model_info[0]
506+
# Handle Stealth M+ correctly
507+
if model_info[1] == "M+":
508+
self._node_info.model = model_info[0:1]
509+
model_info[0] = model_info[0:1]
510+
model_info.pop[1]
511+
506512
self._node_info.version = hardware
507513
if self._node_info.model == "Unknown":
508514
_LOGGER.warning(

0 commit comments

Comments
 (0)