Reorder methods for python interpretor
This commit is contained in:
@@ -16,18 +16,19 @@ class Commander:
|
||||
|
||||
self._client.loop_start()
|
||||
|
||||
def get_votes(self, topic, message, qos=0):
|
||||
# Publish a message that votes are needed.
|
||||
ms.client.publish(topic, message, qos)
|
||||
time.sleep(self.timeout)
|
||||
make_decision()
|
||||
|
||||
def make_decision(self):
|
||||
votes = self._votes
|
||||
|
||||
for vote in votes:
|
||||
continue
|
||||
|
||||
|
||||
def get_votes(self, topic, message, qos=0):
|
||||
# Publish a message that votes are needed.
|
||||
ms.client.publish(topic, message, qos)
|
||||
time.sleep(self.timeout)
|
||||
make_decision()
|
||||
|
||||
def add_subscription(self, topic, callback=None, qos=0):
|
||||
self._client.subscribe(topic)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user