mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
MQTT: Log transmitted as well as received messages (#16195)
This commit is contained in:
parent
2f2bcf0058
commit
a1ce14e70f
@ -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…
x
Reference in New Issue
Block a user