fix a bug of seting hid in components

This commit is contained in:
Cayo Puigdefabregas 2023-05-30 10:13:55 +02:00
parent 8e54f34519
commit 8c69585800
1 changed files with 2 additions and 1 deletions

View File

@ -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