Fix MQTT payload decode returning prematurely (#12420)

* Fix MQTT returning prematurely

* Add test
This commit is contained in:
Otto Winter authored and Paulus Schoutsen committed 2018-02-14 22:00:49 -08:00
1 parent c25c4c85d6
commit 5d4b1ecd3b
2 files changed
+12 -1

No files matched your search

+1 -1
View File
@@ -607,7 +607,7 @@ class MQTT(object):
"with encoding %s",
msg.payload, msg.topic,
subscription.encoding)
return
continue
self.hass.async_run_job(subscription.callback,
msg.topic, payload, msg.qos)