From 7bcbb9e7f4d44e3ba14a38006b2bd445f18b0d3f Mon Sep 17 00:00:00 2001 From: YogevBokobza Date: Tue, 27 Aug 2024 08:33:14 +0300 Subject: [PATCH] fix based on requested changes --- src/aioswitcher/device/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aioswitcher/device/tools.py b/src/aioswitcher/device/tools.py index 1275612f..840be2d6 100644 --- a/src/aioswitcher/device/tools.py +++ b/src/aioswitcher/device/tools.py @@ -199,7 +199,7 @@ async def validate_token(username: str, token: str) -> bool: request_data = {"email": username, "token": token} is_token_valid = False # Preload the SSL context - ssl_context = ssl.create_default_context() + ssl_context = ssl.SSLContext() logger.debug("calling API call for Switcher to validate the token")