fix set_chid
This commit is contained in:
parent
a0c1cce69a
commit
fc36218124
|
@ -770,6 +770,7 @@ class Device(Thing):
|
||||||
from modules.device.utils import set_hid
|
from modules.device.utils import set_hid
|
||||||
|
|
||||||
self.hid = set_hid(self)
|
self.hid = set_hid(self)
|
||||||
|
self.set_chid()
|
||||||
return
|
return
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
@ -778,6 +779,7 @@ class Device(Thing):
|
||||||
self.hid = Naming.hid(
|
self.hid = Naming.hid(
|
||||||
self.type, self.manufacturer, self.model, self.serial_number
|
self.type, self.manufacturer, self.model, self.serial_number
|
||||||
)
|
)
|
||||||
|
self.set_chid()
|
||||||
|
|
||||||
def set_chid(self):
|
def set_chid(self):
|
||||||
if self.hid:
|
if self.hid:
|
||||||
|
|
Reference in New Issue