In CA you don't even need pedals to be legal with an electric.
A "motorized bicycle" or "moped" is:
•A two or three-wheeled device, capable of no more than 30 mph on level ground, and equipped with:
– Fully operative pedals for human propulsion.
– A motor producing less than two gross brake horsepower and an automatic transmission.
– An electric motor, with or without pedals for human propulsion. (CVC §406(a))