From 3b0c6093c82c63fa2318bd628015ac2885d56166 Mon Sep 17 00:00:00 2001 From: Steven B <51370195+sdb9696@users.noreply.github.com> Date: Mon, 18 Nov 2024 11:44:02 +0000 Subject: [PATCH] Fix deprecated SSLContext() usage --- 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 4f3cd4cc5..16054833e 100644 --- a/kasa/transports/sslaestransport.py +++ b/kasa/transports/sslaestransport.py @@ -173,7 +173,7 @@ def _handle_response_error_code(self, resp_dict: Any, msg: str) -> None: 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