Fixed bug in pull()

This commit is contained in:
Shy 2017-03-21 16:12:00 +01:00
parent 021905516b
commit 72c3bfab91

View file

@ -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
# <topic> must be a list
if type(topic) == str:
topic = [topic]