From 8c6958580010a555d04c4ae5330de6ad2563fbc2 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 30 May 2023 10:13:55 +0200 Subject: [PATCH] fix a bug of seting hid in components --- ereuse_devicehub/resources/device/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/device/models.py b/ereuse_devicehub/resources/device/models.py index 4858706b..6bcf6a3a 100644 --- a/ereuse_devicehub/resources/device/models.py +++ b/ereuse_devicehub/resources/device/models.py @@ -825,7 +825,8 @@ class Device(Thing): ).first() def set_hid(self): - if 'property_hid' in app.blueprints.keys(): + is_component = isinstance(self, Component) + if 'property_hid' in app.blueprints.keys() and not is_component: try: from ereuse_devicehub.modules.device.utils import set_hid