platypush/platypush/plugins/gpio/sensor/__init__.py

16 lines
414 B
Python
Raw Normal View History

from platypush.plugins import Plugin
class GpioSensorPlugin(Plugin):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def get_measurement(self, *args, **kwargs):
raise NotImplementedError('get_measurement should be implemented in a derived class')
2018-06-12 00:46:51 +02:00
def get_data(self, *args, **kwargs):
return self.get_measurement(*args, **kwargs)
# vim:sw=4:ts=4:et: