Allow disable topic subscription from config
This commit is contained in:
@@ -54,6 +54,7 @@ class WorkersManager:
|
||||
lambda client, _ , c: self._queue_command(self.Command(worker_obj.on_command, [c.topic, c.payload]))
|
||||
))
|
||||
|
||||
if 'topic_subscription' in config:
|
||||
for (callback_name, options) in config['topic_subcription'].items():
|
||||
_LOGGER.debug("Subscribing to: %s with command: %s" % (options['topic'], callback_name))
|
||||
self._mqtt_callbacks.append((
|
||||
|
||||
Reference in New Issue
Block a user