I have done exactly the same but the student is still marked as 'Not competent' (I have adopted your custom scale to have everything in step).
One question I do have to add: In the underlying mdl_competency_usercomp table what should be in the status, proficiency, and grade fields for a student who should achieve 'Competent'?
Ken