All new light switches need to be grounded. Replacement light switches do not have to be grounded to meet the National Electrical Code. This is because many older homes did not have grounding wires in the light switches, so the old style is “grandfathered in.” If you are installing a new or replacement switch into a metal box that is grounded, the switch will already be grounded via the metal screws and mounting device.