mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Enable PAHO MQTT client logging (#38767)
This commit is contained in:
@@ -666,6 +666,9 @@ class MQTT:
|
|||||||
else:
|
else:
|
||||||
self._mqttc = mqtt.Client(client_id, protocol=proto)
|
self._mqttc = mqtt.Client(client_id, protocol=proto)
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
self._mqttc.enable_logger()
|
||||||
|
|
||||||
username = self.conf.get(CONF_USERNAME)
|
username = self.conf.get(CONF_USERNAME)
|
||||||
password = self.conf.get(CONF_PASSWORD)
|
password = self.conf.get(CONF_PASSWORD)
|
||||||
if username is not None:
|
if username is not None:
|
||||||
|
Reference in New Issue
Block a user