From 8bf5076334fd363d9cf49dfeb9b92ad5350f6442 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 14 Aug 2019 20:52:27 +0200 Subject: [PATCH] FIX we should return device from _get_device --- platypush/plugins/gpio/sensor/bme280.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platypush/plugins/gpio/sensor/bme280.py b/platypush/plugins/gpio/sensor/bme280.py index 996162ded..5e66c9566 100644 --- a/platypush/plugins/gpio/sensor/bme280.py +++ b/platypush/plugins/gpio/sensor/bme280.py @@ -33,6 +33,7 @@ class GpioSensorBme280Plugin(GpioSensorPlugin): self._bus = SMBus(self.port) self._device = BME280(i2c_dev=self._bus) + return self._device @action def get_measurement(self):