This commit is contained in:
parent
574ab36da4
commit
45a787aa39
|
@ -755,6 +755,7 @@ class Snapshot(JoinedWithOneDeviceMixin, ActionWithOneDevice):
|
|||
return snapshots and 'update' or 'new_device'
|
||||
|
||||
def register_passport_dlt(self):
|
||||
import pdb; pdb.set_trace()
|
||||
if 'trublo' not in app.blueprints.keys() or not self.hid:
|
||||
return
|
||||
|
||||
|
|
|
@ -117,11 +117,13 @@ class SnapshotMixin:
|
|||
snapshot.severity = Severity.Warning
|
||||
|
||||
self.is_server_erase(snapshot)
|
||||
snapshot.device.register_dlt()
|
||||
|
||||
snapshot.device.set_hid()
|
||||
snapshot.device.binding.device.set_hid()
|
||||
|
||||
snapshot.device.register_dlt()
|
||||
snapshot.register_passport_dlt()
|
||||
|
||||
return snapshot
|
||||
|
||||
def is_server_erase(self, snapshot):
|
||||
|
|
|
@ -887,6 +887,7 @@ class Device(Thing):
|
|||
return types.get(self.type, '')
|
||||
|
||||
def register_dlt(self):
|
||||
import pdb; pdb.set_trace()
|
||||
if 'trublo' not in app.blueprints.keys() or not self.hid:
|
||||
return
|
||||
|
||||
|
|
Reference in New Issue