get_data alias for get_measuremnt
This commit is contained in:
parent
77d954f14e
commit
bdf862e6d2
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,8 @@ class GpioSensorPlugin(Plugin):
|
||||||
def get_measurement(self, *args, **kwargs):
|
def get_measurement(self, *args, **kwargs):
|
||||||
raise NotImplementedError('get_measurement should be implemented in a derived class')
|
raise NotImplementedError('get_measurement should be implemented in a derived class')
|
||||||
|
|
||||||
|
def get_data(self, *args, **kwargs):
|
||||||
|
return self.get_measurement(*args, **kwargs)
|
||||||
|
|
||||||
# vim:sw=4:ts=4:et:
|
# vim:sw=4:ts=4:et:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue