.
This commit is contained in:
parent
e3f01f4795
commit
4b13995b4f
|
@ -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,
|
||||||
|
|
Reference in a new issue