diff --git a/esphome/components/esphome/ota/ota_esphome.cpp b/esphome/components/esphome/ota/ota_esphome.cpp index 0eef0f0a57..cf845dd5c6 100644 --- a/esphome/components/esphome/ota/ota_esphome.cpp +++ b/esphome/components/esphome/ota/ota_esphome.cpp @@ -355,12 +355,12 @@ void ESPHomeOTAComponent::handle_data_() { if (use_sha256) { // Use SHA256 for authentication - auth_success = perform_hash_auth(this, this->password_); + auth_success = this->perform_hash_auth_(this->password_); } else #endif // USE_OTA_SHA256 { // Fall back to MD5 for backward compatibility (or when SHA256 is not available) - auth_success = perform_hash_auth(this, this->password_); + auth_success = this->perform_hash_auth_(this->password_); } if (!auth_success) {