Skip to content

Commit

Permalink
Update list_hardware_components.py
Browse files Browse the repository at this point in the history
  • Loading branch information
destogl authored Aug 16, 2024
1 parent ab67d75 commit a3c4bc9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ def main(self, *, args):
f"Hardware Component {idx+1}\n\tname: {activity_color}{component.name}{bcolors.ENDC}\n\ttype: {component.type}"
)
if hasattr(component, "plugin_name"):
plugin_name = f"{component.plugin_name}"
plugin_name = component.plugin_name
# Keep compatibility to the obsolete filed name in Humble
elif hasattr(component, "class_type"):
plugin_name = component.class_type
else:
plugin_name = f"{bcolors.WARNING}plugin name missing!{bcolors.ENDC}"

Expand Down

0 comments on commit a3c4bc9

Please sign in to comment.