From d19655e46becaa0225d25ba8910581671446a344 Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Wed, 10 Apr 2019 13:59:05 +0100 Subject: [PATCH] Fix Python linting error E301 --- templates/raspberrypi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/raspberrypi.py b/templates/raspberrypi.py index 7815d49..9a1510b 100644 --- a/templates/raspberrypi.py +++ b/templates/raspberrypi.py @@ -36,9 +36,9 @@ class {{ info.title }}: def __init__(self): # Initialize connection to peripheral self.bus = smbus.SMBus(1) - {% for register in registers %} {% for key in register.keys() %} + def get_{{key.lower()}}(self): """ {{utils.pad_string(" ", register[key].description)}}