Wiring for Ceiling Fan and Light
I'm assuming the new switch came with the new light/fan unit.  In that case, cap the red wire in both boxes.  It must be a communicating switch.  So wire it as you would any single-pole light switch and light.