forked from platypush/platypush
FIX we should return device from _get_device
This commit is contained in:
parent
693b38ef51
commit
8bf5076334
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ class GpioSensorBme280Plugin(GpioSensorPlugin):
|
||||||
|
|
||||||
self._bus = SMBus(self.port)
|
self._bus = SMBus(self.port)
|
||||||
self._device = BME280(i2c_dev=self._bus)
|
self._device = BME280(i2c_dev=self._bus)
|
||||||
|
return self._device
|
||||||
|
|
||||||
@action
|
@action
|
||||||
def get_measurement(self):
|
def get_measurement(self):
|
||||||
|
|
Loading…
Reference in a new issue