Skip to content

Commit 0ad8fed

Browse files
committed
Provide decode version-number as hardware/version
1 parent 54babda commit 0ad8fed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugwise_usb/nodes/node.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,15 +499,15 @@ async def update_node_details(
499499
complete = False
500500
else:
501501
if self._node_info.version != hardware:
502-
self._node_info.version = hardware
503502
# Generate modelname based on hardware version
504-
model_info = version_to_model(hardware).split(" ")
503+
hardware, model_info = version_to_model(hardware).split(" ")
505504
self._node_info.model = model_info[0]
505+
self._node_info.version = hardware
506506
if self._node_info.model == "Unknown":
507507
_LOGGER.warning(
508508
"Failed to detect hardware model for %s based on '%s'",
509509
self.mac,
510-
hardware,
510+
version,
511511
)
512512
if len(model_info) > 1:
513513
self._node_info.model_type = " ".join(model_info[1:])

0 commit comments

Comments
 (0)