We propose a semiconductor device that can electrically generate entangled electron spin-photon states, providing a building block for entanglement of distant spins. The device consists of a p-i-n diode structure that incorporates a coupled double quantum dot. We show that electronic control of the diode bias and local gating allow for the generation of single photons that are entangled with a robust quantum memory based on the electron spins. Practical performance of this approach to controlled spin-photon entanglement is analyzed.