show dhi of placeholder in shapshot_log list

This commit is contained in:
Cayo Puigdefabregas 2022-08-05 16:52:56 +02:00
parent 1996e8fa7a
commit 9800b48aa3
1 changed files with 2 additions and 0 deletions

View File

@ -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 ''