1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

Fix password md5

This commit is contained in:
Otto Winter 2019-03-30 15:45:07 +01:00
parent 00105e5020
commit 21628cd7fa
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -195,7 +195,7 @@ def perform_ota(sock, password, file_handle, filename):
send_check(sock, cnonce, 'auth cnonce')
result_md5 = hashlib.md5()
result_md5.update(password.encode())
result_md5.update(password.encode('utf-8'))
result_md5.update(nonce.encode())
result_md5.update(cnonce.encode())
result = result_md5.hexdigest()