Replace deprecated SSLContext constant PROTOCOL_TLS in mqtt (#88214)

Replace deprecated SSLContext constants
This commit is contained in:
Jan Bouwhuis 2023-02-16 19:01:28 +01:00 committed by GitHub
parent c79157208b
commit 57738fbb8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -329,7 +329,7 @@ class MqttClientSetup:
certificate,
certfile=client_cert,
keyfile=client_key,
tls_version=ssl.PROTOCOL_TLS,
tls_version=ssl.PROTOCOL_TLS_CLIENT,
)
if tls_insecure is not None: