Introduce mqttMessage object

This commit is contained in:
zewelor
2017-11-23 22:16:29 +01:00
parent 7b8e1dad12
commit 939d1e66c6
4 changed files with 36 additions and 19 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ class WorkersManager:
def update(self, worker_name):
messages = self.workers[worker_name].status_update()
for message in messages:
message['topic'] = '/'.join([self._config[worker_name]['topic_prefix'], message['topic']])
message.topic = '/'.join([self._config[worker_name]['topic_prefix'], message.topic])
return messages