diff --git a/c4ctrl.py b/c4ctrl.py index 34e179c..771c6fb 100755 --- a/c4ctrl.py +++ b/c4ctrl.py @@ -62,7 +62,7 @@ class C4Interface(): def pull(self, topic=[]): """Return current state of topic.""" from paho.mqtt import subscribe - topic = topic.copy() or self.topic + topic = topic or self.topic # must be a list if type(topic) == str: topic = [topic]