Failure of an underground switch left more than 4,000 customers without power — some for nearly a full day — in the eastern Goleta Valley, a Southern California Edison spokeswoman said Monday.

The outage, which occurred shortly before 5:20 a.m. Sunday, affected 4,028 customers in an area roughly bounded by Monte Vista Lane, Las Palmas Drive, Hollister Avenue west of Auhay Drive and West Camino Contigo, according to Patricia Bartoli-Wible, Edison’s local public affairs region manager.

She said the outage was caused by an underground switch that failed near San Marcos Road.

Some customers had their service restored by about 5:30 a.m. However, others were left without power for varying amounts of time — some until 3:15 a.m. Monday, Bartoli-Wible said.

Noozhawk executive editor Tom Bolton can be reached at tbolton@noozhawk.com. Follow Noozhawk on Twitter: @noozhawk, @NoozhawkNews and @NoozhawkBiz. Connect with Noozhawk on Facebook.