Refactor USB information and remove unnecessary USB device data from the final result

This commit is contained in:
Hoang Hong Quan
2024-08-05 14:06:14 +07:00
parent 160bdb577c
commit 90cb3d2d49
3 changed files with 29 additions and 28 deletions
+1 -2
View File
@@ -412,7 +412,6 @@ class builder:
hardware_shorc["SD Controller"] = hardware.get("SD Controller")
hardware_shorc["Input"] = hardware.get("Input")
hardware_shorc["Storage Controllers"] = hardware.get("Storage Controllers")
hardware_shorc["USB Controllers"] = [controller_props.get("Device ID") for controller_name, controller_props in hardware.get("USB").get("USB Controllers").items()]
hardware_shorc["Intel MEI"] = hardware.get("Intel MEI")
hardware_shorc["Unsupported Devices"] = hardware.get("Compatibility").get("Unsupported Devices")
@@ -475,7 +474,7 @@ class builder:
hardware_shorc["Input"],
hardware_shorc.get("SD Controller"),
hardware_shorc.get("Storage Controllers"),
hardware_shorc["USB Controllers"],
hardware.get("USB Controllers"),
efi_option.get("SMBIOS"),
efi_option.get("Custom CPU Name"),
efi_option.get("Synchronize the TSC"),