When did they add the yellow light to the traffic light?

The three-color traffic light was created by police officer William Potts in Detroit, Michigan in 1920, according to Motor News (Detroit), March 1947.