From 63890f7670268af13c38ee54e1bd7f454f35f0f5 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 6 Sep 2018 03:14:11 +0200 Subject: [PATCH] Return of get_measurement should always be a dict --- platypush/backend/sensor/distance/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/sensor/distance/__init__.py b/platypush/backend/sensor/distance/__init__.py index 3813d7c146..88cfb1a9bf 100644 --- a/platypush/backend/sensor/distance/__init__.py +++ b/platypush/backend/sensor/distance/__init__.py @@ -15,7 +15,7 @@ class SensorDistanceBackend(SensorBackend): def get_measurement(self): """ get_measurement implementation """ plugin = get_plugin('gpio.sensor.distance') - return plugin.get_data().output + return {"distance": plugin.get_data().output } # vim:sw=4:ts=4:et: