mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Merge pull request #869 from philipbl/mqtt-fix
Default to MQTT protocol v3.1.1
This commit is contained in:
commit
18d2668e3b
@ -149,9 +149,9 @@ class MQTT(object):
|
||||
}
|
||||
|
||||
if client_id is None:
|
||||
self._mqttc = mqtt.Client()
|
||||
self._mqttc = mqtt.Client(protocol=mqtt.MQTTv311)
|
||||
else:
|
||||
self._mqttc = mqtt.Client(client_id)
|
||||
self._mqttc = mqtt.Client(client_id, protocol=mqtt.MQTTv311)
|
||||
|
||||
self._mqttc.user_data_set(self.userdata)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user