Skip to content

Commit b638b31

Browse files
committed
Improve
1 parent 0ad8fed commit b638b31

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugwise_usb/nodes/node.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,14 +500,15 @@ async def update_node_details(
500500
else:
501501
if self._node_info.version != hardware:
502502
# Generate modelname based on hardware version
503-
hardware, model_info = version_to_model(hardware).split(" ")
503+
hardware, model_info = version_to_model(hardware)
504+
model_info = model_info.split(" ")
504505
self._node_info.model = model_info[0]
505506
self._node_info.version = hardware
506507
if self._node_info.model == "Unknown":
507508
_LOGGER.warning(
508509
"Failed to detect hardware model for %s based on '%s'",
509510
self.mac,
510-
version,
511+
hardware,
511512
)
512513
if len(model_info) > 1:
513514
self._node_info.model_type = " ".join(model_info[1:])

0 commit comments

Comments
 (0)