unixorn / ha-mqtt-discoverable

Python module to create MQTT entities that are automatically discovered by Home Assistant
Apache License 2.0
89 stars 21 forks source link

Add possibility to connect to a TLS enabled MQTT Broker using username and password authentication. #137

Closed trunet closed 9 months ago

trunet commented 9 months ago

This PR add the possibility to connect to a TLS enabled MQTT Broker using username and password authentication.

Fixes #136

Description

use_tls flag from CLI or setting to True when instantiating the class, will enable it. You also have the option to set tls_ca_cert to validate presented server certificate.

License Acceptance

Type of changes

Checklist

unixorn commented 9 months ago

Thanks for the contribution. I'll make a release shortly that includes this feature.