mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-07-04 02:29:58 +00:00
Tweak log messages and method names
This commit is contained in:
parent
841cb3aed4
commit
2df668ee28
@ -370,9 +370,9 @@ class SslAesTransport(BaseTransport):
|
|||||||
local_nonce, server_nonce, pwd_hash = result
|
local_nonce, server_nonce, pwd_hash = result
|
||||||
await self.perform_handshake2(local_nonce, server_nonce, pwd_hash)
|
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."""
|
"""Perform the md5 login."""
|
||||||
_LOGGER.debug("Performing insecure login ...")
|
_LOGGER.debug("Performing less secure login ...")
|
||||||
|
|
||||||
pwd = self._pwd_to_hash()
|
pwd = self._pwd_to_hash()
|
||||||
pwd_hash = _md5_hash(pwd.encode())
|
pwd_hash = _md5_hash(pwd.encode())
|
||||||
@ -497,7 +497,7 @@ class SslAesTransport(BaseTransport):
|
|||||||
if (
|
if (
|
||||||
resp_dict
|
resp_dict
|
||||||
and self._is_less_secure_login(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
|
return None
|
||||||
|
|
||||||
@ -526,7 +526,7 @@ class SslAesTransport(BaseTransport):
|
|||||||
# Otherwise could be less secure login
|
# Otherwise could be less secure login
|
||||||
elif (
|
elif (
|
||||||
self._is_less_secure_login(default_resp_dict)
|
self._is_less_secure_login(default_resp_dict)
|
||||||
and await self.try_perform_login()
|
and await self.try_perform_less_secure_login()
|
||||||
):
|
):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user