FIX we should return device from _get_device

This commit is contained in:
Fabio Manganiello 2019-08-14 20:52:27 +02:00
parent 693b38ef51
commit 8bf5076334

View file

@ -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):