From bb8a21ed130b36fc8bfd982c7c9c4504239e47b1 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 12 Jan 2019 02:08:04 +0100 Subject: [PATCH] Revert "Sort Adafruit IO received data by timestamp" This reverts commit 2739dda2665ddcb7c1f628c8e4b8315061a81048. --- platypush/plugins/adafruit/io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/adafruit/io.py b/platypush/plugins/adafruit/io.py index 0c1652921..27e8b2a03 100644 --- a/platypush/plugins/adafruit/io.py +++ b/platypush/plugins/adafruit/io.py @@ -180,13 +180,13 @@ class AdafruitIoPlugin(Plugin): def _convert_data_to_dict(self, *data): from Adafruit_IO.model import DATA_FIELDS - return sorted([ + return [ { attr: self._cast_value(getattr(i, attr)) if attr == 'value' else getattr(i, attr) for attr in DATA_FIELDS if getattr(i, attr) is not None } for i in data - ], key=lambda i: i.get('created_epoch')) + ] @action