From d73a839eabd44ee0f8067eaa61222e42cfac45e1 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Mon, 4 Sep 2017 01:12:26 -0700 Subject: [PATCH] add the correct reactor call --- yadenon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yadenon.py b/yadenon.py index 943299e..4fabe92 100644 --- a/yadenon.py +++ b/yadenon.py @@ -31,6 +31,7 @@ __license__ = '2-clause BSD license' # of the authors and should not be interpreted as representing official policies, # either expressed or implied, of the Project. +from twisted.internet import reactor from twisted.internet.defer import inlineCallbacks, Deferred, returnValue from twisted.protocols import basic from twisted.test import proto_helpers @@ -52,7 +53,7 @@ class DenonAVR(object,basic.LineReceiver): def __init__(self, serdev): '''Specify the serial device connected to the Denon AVR.''' - self._ser = twisted.internet.serialport.SerialPort(self, serdev, None, baudrate=9600) + self._ser = twisted.internet.serialport.SerialPort(self, serdev, reactor, baudrate=9600) self._cmdswaiting = {} self._power = None