Fix thermostat commands

This commit is contained in:
zewelor
2017-11-29 10:23:21 +01:00
parent ddc224f389
commit 1bc7b1f92b
3 changed files with 5 additions and 8 deletions
+2 -2
View File
@@ -44,9 +44,9 @@ class WorkersManager:
)
if 'topic_subscription' in worker_config:
_LOGGER.debug("Subscribing to: %s" % worker_config['topic_subscription'] + '/#')
_LOGGER.debug("Subscribing to: %s" % worker_config['topic_subscription'])
mqtt_callbacks.append((
worker_config['topic_subscription'] + '/#',
worker_config['topic_subscription'],
lambda client, _ , c: _WORKERS_QUEUE.put(cls.Command(worker_obj.on_command, [c.topic, c.payload]))
))