From 410c3d2623de8d8d7e6beec54bab3e1436f8f7a0 Mon Sep 17 00:00:00 2001 From: "Steven B." <51370195+sdb9696@users.noreply.github.com> Date: Mon, 18 Nov 2024 11:49:44 +0000 Subject: [PATCH] Fix deprecated SSLContext() usage (#1271) --- kasa/transports/sslaestransport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kasa/transports/sslaestransport.py b/kasa/transports/sslaestransport.py index 4f3cd4cc..16054833 100644 --- a/kasa/transports/sslaestransport.py +++ b/kasa/transports/sslaestransport.py @@ -173,7 +173,7 @@ class SslAesTransport(BaseTransport): raise DeviceError(msg, error_code=error_code) def _create_ssl_context(self) -> ssl.SSLContext: - context = ssl.SSLContext() + context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) context.set_ciphers(self.CIPHERS) context.check_hostname = False context.verify_mode = ssl.CERT_NONE