mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 06:58:11 +01:00
OTA don't error when upgrading from no password to password mode (#309)
This commit is contained in:
parent
33b67de32e
commit
605be1a6ec
1 changed files with 0 additions and 3 deletions
|
@ -187,9 +187,6 @@ def perform_ota(sock, password, file_handle, filename):
|
||||||
|
|
||||||
send_check(sock, result, 'auth result')
|
send_check(sock, result, 'auth result')
|
||||||
receive_exactly(sock, 1, 'auth result', RESPONSE_AUTH_OK)
|
receive_exactly(sock, 1, 'auth result', RESPONSE_AUTH_OK)
|
||||||
else:
|
|
||||||
if password:
|
|
||||||
raise OTAError("Password specified, but ESP doesn't accept password!")
|
|
||||||
|
|
||||||
file_size_encoded = [
|
file_size_encoded = [
|
||||||
(file_size >> 24) & 0xFF,
|
(file_size >> 24) & 0xFF,
|
||||||
|
|
Loading…
Reference in a new issue