From 974452e03e1fa4ab695f268af18898a1779297ed Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 19 Dec 2017 11:26:51 -0800 Subject: [PATCH] Add explicit return to avoid implicit None return which doesn't match the expression return within the loop. --- adafruit_irremote.py | 1 + 1 file changed, 1 insertion(+) diff --git a/adafruit_irremote.py b/adafruit_irremote.py index f9ecbed..908aeb3 100644 --- a/adafruit_irremote.py +++ b/adafruit_irremote.py @@ -179,6 +179,7 @@ def read_pulses(self, input_pulses, max_pulse=10000): else: return received received.append(pulse) + return received class GenericTransmit: """Generic infrared transmit class that handles encoding."""