This commit is contained in:
Cayo Puigdefabregas 2023-01-23 11:52:38 +01:00
parent 574ab36da4
commit 45a787aa39
3 changed files with 5 additions and 1 deletions

View file

@ -755,6 +755,7 @@ class Snapshot(JoinedWithOneDeviceMixin, ActionWithOneDevice):
return snapshots and 'update' or 'new_device' return snapshots and 'update' or 'new_device'
def register_passport_dlt(self): def register_passport_dlt(self):
import pdb; pdb.set_trace()
if 'trublo' not in app.blueprints.keys() or not self.hid: if 'trublo' not in app.blueprints.keys() or not self.hid:
return return

View file

@ -117,11 +117,13 @@ class SnapshotMixin:
snapshot.severity = Severity.Warning snapshot.severity = Severity.Warning
self.is_server_erase(snapshot) self.is_server_erase(snapshot)
snapshot.device.register_dlt()
snapshot.device.set_hid() snapshot.device.set_hid()
snapshot.device.binding.device.set_hid() snapshot.device.binding.device.set_hid()
snapshot.device.register_dlt()
snapshot.register_passport_dlt()
return snapshot return snapshot
def is_server_erase(self, snapshot): def is_server_erase(self, snapshot):

View file

@ -887,6 +887,7 @@ class Device(Thing):
return types.get(self.type, '') return types.get(self.type, '')
def register_dlt(self): def register_dlt(self):
import pdb; pdb.set_trace()
if 'trublo' not in app.blueprints.keys() or not self.hid: if 'trublo' not in app.blueprints.keys() or not self.hid:
return return