From 335d3e3cd71783fbd8acc8ae499bafe3e258249f Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 22 Aug 2018 19:20:24 +0200 Subject: [PATCH] Typo --- platypush/plugins/gpio/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/gpio/__init__.py b/platypush/plugins/gpio/__init__.py index 3ff1ba53b4..bc413e358b 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)