From 9800b48aa3011f2764fa761ac0c52fd110ae2355 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 5 Aug 2022 16:52:56 +0200 Subject: [PATCH] show dhi of placeholder in shapshot_log list --- ereuse_devicehub/parser/models.py | 2 ++ 1 file changed, 2 insertions(+) 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 ''