From 4e9b0ee0eb507a4c81ab816caccb75c56a34e374 Mon Sep 17 00:00:00 2001 From: Steven B <51370195+sdb9696@users.noreply.github.com> Date: Fri, 13 Dec 2024 15:19:20 +0000 Subject: [PATCH] Fix val is None --- kasa/transports/sslaestransport.py | 2 ++ 1 file changed, 2 insertions(+) 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: