diff --git a/kasa/transports/sslaestransport.py b/kasa/transports/sslaestransport.py index e474edc2..4d3df62e 100644 --- a/kasa/transports/sslaestransport.py +++ b/kasa/transports/sslaestransport.py @@ -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: