MQTT error after upgrade to 0.48

Just upgraded my HA to latest version 0.48. After upgrade it wont load MQTT saying “Invalid config”.

From the log I find:

2017-07-02 14:35:14 ERROR (MainThread) [homeassistant.setup] Error during setup of component mqtt
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/”, line 187, in _async_setup_component
result = yield from component.async_setup(hass, processed_config)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/mqtt/”, line 364, in async_setup
will_message, birth_message, tls_version)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/mqtt/”, line 456, in init
File “/home/homeassistant/.homeassistant/deps/paho/mqtt/”, line 727, in tls_insecure_set
raise ValueError(‘Must configure SSL context before using tls_insecure_set.’)
ValueError: Must configure SSL context before using tls_insecure_set.

Something with SSL not configured using tls_insecure_set. But I haven’t configured TLS. Running my own broker. Can anyone help?

And I figured it out myself, sorry for bothering the forum :slight_smile:

I had ‘tls_insecure: True’ configured in my configuration.yaml MQTT settings. I commented it out and now it is working as usual.

Peace out!