Since you are using a form 1040 and filing as resident, TurboTax is considering you eligible. However, since you were non-resident at the end of the year you should be filing a 1040NR. TurboTax does not support that form, however you can use Sprintax for assistance.
Here is a link for reference. See the paragraph titled "Non-resident at the end of the year".
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"