mirror of
https://github.com/home-assistant/core.git
synced 2025-08-22 22:12:48 +02:00
Fix TP-Link device tracker regression since 0.49
This regression was introduced by #8322. Fix is to utf encode the password like the other TP-Link backends do.
This commit is contained in:
@@ -391,7 +391,7 @@ class Tplink5DeviceScanner(TplinkDeviceScanner):
|
||||
"Cache-Control": "no-cache"
|
||||
}
|
||||
|
||||
password_md5 = hashlib.md5(self.password).hexdigest().upper()
|
||||
password_md5 = hashlib.md5(self.password.encode('utf')).hexdigest().upper()
|
||||
|
||||
# create a session to handle cookie easier
|
||||
session = requests.session()
|
||||
|
Reference in New Issue
Block a user