MQTT: Log transmitted as well as received messages (#16195)
This commit is contained in:
parent
2f2bcf0058
commit
a1ce14e70f
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue