From 4b13995b4f4aabe540015b917431776e13cce367 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 5 Dec 2022 12:40:26 +0100 Subject: [PATCH] . --- ereuse_devicehub/resources/device/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ereuse_devicehub/resources/device/models.py b/ereuse_devicehub/resources/device/models.py index 8e8f7fa1..3b8aef05 100644 --- a/ereuse_devicehub/resources/device/models.py +++ b/ereuse_devicehub/resources/device/models.py @@ -747,6 +747,7 @@ class Device(Thing): def set_hid(self): """ + The order is important # product_vendor, is a manufacturer # product_family, is a new field of lshw # product_chassis, is a type of chassis @@ -793,11 +794,12 @@ class Device(Thing): self.hid = '-'.join( [ (self.manufacturer or '').replace(' ', '_'), - model, + family, chassis, - self.serial_number, + model, version, sku, + self.serial_number, system_uuid, board_manufacturer, board_model,