diff --git a/platypush/plugins/gpio/__init__.py b/platypush/plugins/gpio/__init__.py index 4617fb5f7f..23d803f887 100644 --- a/platypush/plugins/gpio/__init__.py +++ b/platypush/plugins/gpio/__init__.py @@ -152,5 +152,10 @@ class GpioPlugin(Plugin): return values + @action + def cleanup(self): + import RPi.GPIO as gpio + gpio.cleanup() + # vim:sw=4:ts=4:et: