From 6142b89f41c45fb2d8d102a7237ea8ba29181eae Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 27 May 2021 15:56:10 +0200 Subject: [PATCH] adding confirm_status in devices --- ereuse_devicehub/resources/device/models.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ereuse_devicehub/resources/device/models.py b/ereuse_devicehub/resources/device/models.py index bf43a356..65aa5669 100644 --- a/ereuse_devicehub/resources/device/models.py +++ b/ereuse_devicehub/resources/device/models.py @@ -262,6 +262,13 @@ class Device(Thing): action = self.last_action_of(*states.Trading.actions()) return states.Trading(action.__class__) + @property + def confirm_status(self): + """The actual state of confirmation of one Trade, or None if no Trade action + has ever been performed to this device.""" + # TODO @cayop we need implement this functionality + return None + @property def physical(self): """The actual physical state, None otherwise."""