Nealh is correct, you have confused the 'controller' with the throttle/light switch.
Normally, electric bikes comprise the following components:
Motor, battery, controller and sensors (some/all of Pedal rotation, throttle, brake, speed, torque).
The controller is the brain in the middle that...