ceiling fan switch on wall
You could bypass the switch but there is a code requirement for a light or outlet to be controlled by a switch. I would just leave the switch on. Note it is not a resistor but a solid state SCR or Triac that is adjusting the waveform, a very small resistor is used to vary the gate voltage to the SCR or Triac. If a resistor was used it would get very warm in the wall because the resistor would have to dissipate the heat, solid state controls turn the power off for part of the waveform.