From bdf862e6d2c68404bee000d563ef620945cbd47f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 12 Jun 2018 00:46:51 +0200 Subject: [PATCH] get_data alias for get_measuremnt --- platypush/plugins/gpio/sensor/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platypush/plugins/gpio/sensor/__init__.py b/platypush/plugins/gpio/sensor/__init__.py index b6abbdb050..a25a2c3559 100644 --- a/platypush/plugins/gpio/sensor/__init__.py +++ b/platypush/plugins/gpio/sensor/__init__.py @@ -8,6 +8,8 @@ class GpioSensorPlugin(Plugin): def get_measurement(self, *args, **kwargs): 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: