diff --git a/platypush/plugins/gpio/__init__.py b/platypush/plugins/gpio/__init__.py index 3ff1ba53..bc413e35 100644 --- a/platypush/plugins/gpio/__init__.py +++ b/platypush/plugins/gpio/__init__.py @@ -126,7 +126,7 @@ class GpioPlugin(Plugin): raise RuntimeError("No PIN mappings were provided/configured") values = [] - for (pin, name) in self.pins_by_number.keys(): + for (pin, name) in self.pins_by_number.items(): gpio.setmode(gpio.BCM) gpio.setup(pin, gpio.IN) val = gpio.input(pin)