Fixed bug in pull()
This commit is contained in:
parent
021905516b
commit
72c3bfab91
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class C4Interface():
|
||||||
def pull(self, topic=[]):
|
def pull(self, topic=[]):
|
||||||
"""Return current state of topic."""
|
"""Return current state of topic."""
|
||||||
from paho.mqtt import subscribe
|
from paho.mqtt import subscribe
|
||||||
topic = topic.copy() or self.topic
|
topic = topic or self.topic
|
||||||
# <topic> must be a list
|
# <topic> must be a list
|
||||||
if type(topic) == str:
|
if type(topic) == str:
|
||||||
topic = [topic]
|
topic = [topic]
|
||||||
|
|
Loading…
Reference in a new issue