Skip to content

Commit

Permalink
Fix TP-Link device tracker regression since 0.49
Browse files Browse the repository at this point in the history
This regression was introduced by home-assistant#8322.

Fix is to utf encode the password like the other TP-Link backends do.
  • Loading branch information
maikelwever committed Jul 16, 2017
1 parent bffa0d2 commit 677f3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/device_tracker/tplink.py
Expand Up @@ -391,7 +391,7 @@ def _update_info(self):
"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()
Expand Down

0 comments on commit 677f3fb

Please sign in to comment.