MQTT: Log transmitted as well as received messages (#16195)

This commit is contained in:
Matthias Urlichs authored and Fabian Affolter committed 2018-08-26 10:04:51 +02:00
1 parent 2f2bcf0058
commit a1ce14e70f
1 file changed
+1
@@ -550,6 +550,7 @@ class MQTT:
This method must be run in the event loop and returns a coroutine.
"""
async with self._paho_lock:
_LOGGER.debug("Transmitting message on %s: %s", topic, payload)
await self.hass.async_add_job(
self._mqttc.publish, topic, payload, qos, retain)