What do you do about sleep when baby’s sick?

I know when baby’s are sick is not the time for any kind of sleep training. But what do you do to comfort them when the patting and reassuring isn’t working and picking up and snuggling is all they want?

My son has a cough and congestion, no fever, but interval checking in wasn’t working and I caved and picked him up... hoping this doesn’t create a new habit. What do you mom’s do?