This commit is contained in:
Cayo Puigdefabregas 2022-12-05 12:40:26 +01:00
parent e3f01f4795
commit 4b13995b4f
1 changed files with 4 additions and 2 deletions

View File

@ -747,6 +747,7 @@ class Device(Thing):
def set_hid(self): def set_hid(self):
""" """
The order is important
# product_vendor, is a manufacturer # product_vendor, is a manufacturer
# product_family, is a new field of lshw # product_family, is a new field of lshw
# product_chassis, is a type of chassis # product_chassis, is a type of chassis
@ -793,11 +794,12 @@ class Device(Thing):
self.hid = '-'.join( self.hid = '-'.join(
[ [
(self.manufacturer or '').replace(' ', '_'), (self.manufacturer or '').replace(' ', '_'),
model, family,
chassis, chassis,
self.serial_number, model,
version, version,
sku, sku,
self.serial_number,
system_uuid, system_uuid,
board_manufacturer, board_manufacturer,
board_model, board_model,