MQTT backend should call on_message instead of posting directly to the bus

This commit is contained in:
Fabio Manganiello 2018-09-24 23:21:02 +02:00
parent d215410a6a
commit 65ec2458d8
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class MqttBackend(Backend):
except: pass
self.logger.info('Received message on the MQTT backend: {}'.format(msg))
self.bus.post(msg)
self.on_message(msg)
super().run()
client = mqtt.Client()