mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-20 06:18:01 +00:00
Fix val is None
This commit is contained in:
@@ -609,6 +609,8 @@ class SslAesTransport(BaseTransport):
|
|||||||
_sha256_hash32,
|
_sha256_hash32,
|
||||||
lambda x: x.decode(),
|
lambda x: x.decode(),
|
||||||
}:
|
}:
|
||||||
|
if not val:
|
||||||
|
continue
|
||||||
pwd_hash = func(val.encode())
|
pwd_hash = func(val.encode())
|
||||||
ec = self.generate_confirm_hash(local_nonce, server_nonce, pwd_hash)
|
ec = self.generate_confirm_hash(local_nonce, server_nonce, pwd_hash)
|
||||||
if device_confirm == ec:
|
if device_confirm == ec:
|
||||||
|
Reference in New Issue
Block a user