21 month old sleep issues!

Jennie

My daughter has been sick 3 times in the past month. Currently, she has an ear infection. She's been putting herself to sleep since she was 4 months old. Now she cant sleep unless she's with my husband or myself. I do not want this long term. Should I expect her to go back to normal once the ear infection is better ? Or will I have to retrain her ?? Any opinions and advice is welcomed. Thank you!!!