The code is pretty clear ... every "outlet" ... and a switch is not an outlet.