From 2df668ee283f0d374a31701d3312eb0063267eea Mon Sep 17 00:00:00 2001 From: Steven B <51370195+sdb9696@users.noreply.github.com> Date: Fri, 13 Dec 2024 16:35:01 +0000 Subject: [PATCH] Tweak log messages and method names --- kasa/transports/sslaestransport.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kasa/transports/sslaestransport.py b/kasa/transports/sslaestransport.py index bcae5570..1e8caf0c 100644 --- a/kasa/transports/sslaestransport.py +++ b/kasa/transports/sslaestransport.py @@ -370,9 +370,9 @@ class SslAesTransport(BaseTransport): local_nonce, server_nonce, pwd_hash = result await self.perform_handshake2(local_nonce, server_nonce, pwd_hash) - async def try_perform_login(self) -> bool: + async def try_perform_less_secure_login(self) -> bool: """Perform the md5 login.""" - _LOGGER.debug("Performing insecure login ...") + _LOGGER.debug("Performing less secure login ...") pwd = self._pwd_to_hash() pwd_hash = _md5_hash(pwd.encode()) @@ -497,7 +497,7 @@ class SslAesTransport(BaseTransport): if ( resp_dict and self._is_less_secure_login(resp_dict) - and await self.try_perform_login() + and await self.try_perform_less_secure_login() ): return None @@ -526,7 +526,7 @@ class SslAesTransport(BaseTransport): # Otherwise could be less secure login elif ( self._is_less_secure_login(default_resp_dict) - and await self.try_perform_login() + and await self.try_perform_less_secure_login() ): return None