1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-22 05:02:23 +01:00

remove unreachable code

This commit is contained in:
J. Nick Koston
2025-09-21 10:27:27 -06:00
parent 7d4a7d48ee
commit 233cc08dc6

View File

@@ -286,8 +286,9 @@ def perform_ota(
[RESPONSE_REQUEST_AUTH, RESPONSE_REQUEST_SHA256_AUTH, RESPONSE_AUTH_OK], [RESPONSE_REQUEST_AUTH, RESPONSE_REQUEST_SHA256_AUTH, RESPONSE_AUTH_OK],
) )
hash_func, nonce_size, hash_name = _AUTH_METHODS[auth] if auth != RESPONSE_AUTH_OK:
perform_auth(sock, password, hash_func, nonce_size, hash_name) hash_func, nonce_size, hash_name = _AUTH_METHODS[auth]
perform_auth(sock, password, hash_func, nonce_size, hash_name)
# Set higher timeout during upload # Set higher timeout during upload
sock.settimeout(30.0) sock.settimeout(30.0)