fix set_chid

This commit is contained in:
Cayo Puigdefabregas 2022-12-13 20:41:15 +01:00
parent a0c1cce69a
commit fc36218124

View file

@ -770,6 +770,7 @@ class Device(Thing):
from modules.device.utils import set_hid
self.hid = set_hid(self)
self.set_chid()
return
except Exception:
pass
@ -778,6 +779,7 @@ class Device(Thing):
self.hid = Naming.hid(
self.type, self.manufacturer, self.model, self.serial_number
)
self.set_chid()
def set_chid(self):
if self.hid: