mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02:00
MQTT: Log transmitted as well as received messages (#16195)
This commit is contained in:
committed by
Fabian Affolter
parent
2f2bcf0058
commit
a1ce14e70f
@@ -550,6 +550,7 @@ class MQTT:
|
|||||||
This method must be run in the event loop and returns a coroutine.
|
This method must be run in the event loop and returns a coroutine.
|
||||||
"""
|
"""
|
||||||
async with self._paho_lock:
|
async with self._paho_lock:
|
||||||
|
_LOGGER.debug("Transmitting message on %s: %s", topic, payload)
|
||||||
await self.hass.async_add_job(
|
await self.hass.async_add_job(
|
||||||
self._mqttc.publish, topic, payload, qos, retain)
|
self._mqttc.publish, topic, payload, qos, retain)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user