mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Addresses #135443: Set on connect.
This commit is contained in:
@@ -659,6 +659,9 @@ class MQTT:
|
||||
self.conf[CONF_BROKER],
|
||||
self.conf.get(CONF_PORT, DEFAULT_PORT),
|
||||
self.conf.get(CONF_KEEPALIVE, DEFAULT_KEEPALIVE),
|
||||
"", # bind_address default
|
||||
0, # bind_port default
|
||||
True, # clean_start
|
||||
)
|
||||
except (OSError, mqtt.WebsocketConnectionError) as err:
|
||||
_LOGGER.error("Failed to connect to MQTT server due to exception: %s", err)
|
||||
|
Reference in New Issue
Block a user