mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-22 19:23:34 +00:00
Fix val is None
This commit is contained in:
parent
aba71744ca
commit
4e9b0ee0eb
@ -609,6 +609,8 @@ class SslAesTransport(BaseTransport):
|
||||
_sha256_hash32,
|
||||
lambda x: x.decode(),
|
||||
}:
|
||||
if not val:
|
||||
continue
|
||||
pwd_hash = func(val.encode())
|
||||
ec = self.generate_confirm_hash(local_nonce, server_nonce, pwd_hash)
|
||||
if device_confirm == ec:
|
||||
|
Loading…
Reference in New Issue
Block a user