From 605be1a6ecb9b23f75d11222e749d14d295678d9 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Tue, 8 Jan 2019 12:51:26 +0100 Subject: [PATCH] OTA don't error when upgrading from no password to password mode (#309) --- esphomeyaml/espota2.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/esphomeyaml/espota2.py b/esphomeyaml/espota2.py index b541f4d63b..895ffbadf0 100755 --- a/esphomeyaml/espota2.py +++ b/esphomeyaml/espota2.py @@ -187,9 +187,6 @@ def perform_ota(sock, password, file_handle, filename): send_check(sock, result, 'auth result') 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 >> 24) & 0xFF,