diff --git a/ereuse_devicehub/parser/models.py b/ereuse_devicehub/parser/models.py index 2bd28eb8..769e43a1 100644 --- a/ereuse_devicehub/parser/models.py +++ b/ereuse_devicehub/parser/models.py @@ -42,6 +42,8 @@ class SnapshotsLog(Thing): def get_device(self): if self.snapshot: + if self.snapshot.device.binding: + return self.snapshot.device.binding.device.devicehub_id return self.snapshot.device.devicehub_id return ''