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

This commit is contained in:
Matthias Urlichs 2018-08-26 10:04:51 +02:00 committed by Fabian Affolter
parent 2f2bcf0058
commit a1ce14e70f

View file

@ -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)