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 54babda commit 0ad8fedCopy full SHA for 0ad8fed
plugwise_usb/nodes/node.py
@@ -499,15 +499,15 @@ async def update_node_details(
499
complete = False
500
else:
501
if self._node_info.version != hardware:
502
- self._node_info.version = hardware
503
# Generate modelname based on hardware version
504
- model_info = version_to_model(hardware).split(" ")
+ hardware, model_info = version_to_model(hardware).split(" ")
505
self._node_info.model = model_info[0]
+ self._node_info.version = hardware
506
if self._node_info.model == "Unknown":
507
_LOGGER.warning(
508
"Failed to detect hardware model for %s based on '%s'",
509
self.mac,
510
- hardware,
+ version,
511
)
512
if len(model_info) > 1:
513
self._node_info.model_type = " ".join(model_info[1:])
0 commit comments