mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
* Temporary fix for the client_id generation (fixes #8315) * Fix comment * Move client id setting. * Lint
This commit is contained in:
parent
ea5bec3ef4
commit
0ecceb601b
@ -315,6 +315,10 @@ def async_setup(hass, config):
|
|||||||
client_cert = conf.get(CONF_CLIENT_CERT)
|
client_cert = conf.get(CONF_CLIENT_CERT)
|
||||||
tls_insecure = conf.get(CONF_TLS_INSECURE)
|
tls_insecure = conf.get(CONF_TLS_INSECURE)
|
||||||
protocol = conf[CONF_PROTOCOL]
|
protocol = conf[CONF_PROTOCOL]
|
||||||
|
|
||||||
|
# hbmqtt requires a client id to be set.
|
||||||
|
if client_id is None:
|
||||||
|
client_id = 'home-assistant'
|
||||||
elif broker_config:
|
elif broker_config:
|
||||||
# If no broker passed in, auto config to internal server
|
# If no broker passed in, auto config to internal server
|
||||||
broker, port, username, password, certificate, protocol = broker_config
|
broker, port, username, password, certificate, protocol = broker_config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user