Diode

An electronic component that lets electric current pass only in one direction. A solar cell in the dark acts as a diode.