Yes, in the south SF bay city of Fremont (about 11 miles away from Silicon Valley/San Jose), until 4 years ago. It was some US/Japan venture thing, a type of partnership that went bankrupt.
I understand that made for part of what Tesla moved into.
So the answer is yes, one of the highest tech makers in the world is in California, but it is now the pet boutique project of a billionaire, which is fine, but they are not really in the clear, or anything.
I think if things keep moving in the direction I see, Tesla might one day move away.
That was the NUMMI plant. Joint Toyota/GM venture. Built Toyota and GM cards that shared common engine/chassis/motor.
It may have been an older GM plant that was converted. When I lived in the Bay Area, it built Geo Prizm/Toyota Corolla and Pontiac Vibe/Toyota Matrix.
They built Tacomas in the NUMMI plant as well...from the mid 90’s until 2009, when they opened their new truck plant in Texas.
Tesla has annouced plans for a new battery plant. They haven't yet selected the site, but have stated it won't be here in Kalifornia.