OAKLAND, Calif. (AP) — Three people were killed in Northern California as high winds battered the region, toppling trees and knocking out power to thousands of residents as rain became a problem elsewhere in California and the West.

A wind advisory remained in effect for much of the area Friday morning, with gusts up to 45 mph expected. In the Sierra, a high wind warning was in effect through early Saturday morning, with gusts up to 90 mph possible, the National Weather Service said.

The three deaths occurred Thursday. A man was killed in Oakland when a power line fell to the ground and electrocuted him, The Contra Costa Times reported. Another man died in Oakland less than an hour later as he tried to avoid debris in the road. Neither man has been identified.

In Yuba County, Sherri Pesich, 52, died when part of a 30-inch tree fell on a parked car in which she was sitting, Undersheriff Jerry Read said. Another woman in the car was taken to a hospital; her condition was unknown.

Pacific Gas and Electric Co. said tens of thousands of customers were without power late Thursday. There was no estimate when power would be restored.

The rain throughout the West led to flooding in San Bernardino County, where five homeless people were trapped by water and had to be rescued from the Santa Ana River, fire officials told the San Bernardino County Sun.

One man was clinging to a tree and had to be rescued by a sheriff's helicopter. Four other people sought higher ground on an island and were rescued by crews from the Riverside Fire Department.

Authorities in Las Vegas, meanwhile, responded to hundreds of car accidents as a storm dropped an inch of rain over desert dwellers.

Trooper Loy Hixson said the Nevada Highway Patrol responded to 141 crashes between 7 a.m. Thursday and 7 a.m. Friday, including 37 with minor injuries. That's four to five times what the agency sees on a normal day.

The National Weather Service predicts rain will continue through Saturday morning. A flood watch was also in effect until then for the Phoenix area, where several miles of the Loop 303 freeway in the western suburbs were closed due to flooding. Forecasters said they expect ponding of water on local streets and in low-lying areas.

A winter weather advisory was issued for northern Arizona, where 1 to 4 inches of snow had fallen in the Flagstaff area Friday morning.

Also on HuffPost:

Loading Slideshow...
  • An Indian woman returns to the cyclone hit Arjipalli village on the Bay of Bengal coast in Ganjam district, Orissa state, India, Sunday, Oct. 13, 2013. India began sorting through miles of wreckage Sunday after Cyclone Phailin roared ashore, flooding towns and villages and destroying tens of thousands of thatch homes, but officials said massive evacuation efforts had spared the east coast from widespread loss of life. The storm, the strongest to hit India in more than a decade, destroyed hundreds of millions of dollars' worth of crops, but more than 18 hours after it made landfall in Orissa state, officials said they knew of only nine fatalities. (AP Photo/Biswaranjan Rout)

  • An Indian child washes utensils after eating freely distributed food at the cyclone hit village of Podampeta on the Bay of Bengal coast in Ganjam district, Orissa state, India, Sunday, Oct. 13, 2013. Mass evacuations spared India the widespread deaths many had feared from a powerful cyclone that roared ashore over the weekend, officials said Sunday, as the country sorted through the wreckage of flooded towns, tangled power lines and tens of thousands of destroyed thatch homes. (AP Photo/Biswaranjan Rout)

  • A man walks towards a damaged cellular phone mast in the cyclone hit town of Berhampur on the Bay of Bengal coast in Ganjam district, Orissa state, India, Sunday, Oct. 13, 2013.Mass evacuations spared India the widespread deaths many had feared from a powerful cyclone that roared ashore over the weekend, officials said Sunday, as the country sorted through the wreckage of flooded towns, tangled power lines and tens of thousands of destroyed thatch homes. (AP Photo/Biswaranjan Rout)

  • Indian villagers collect their belongings at the cyclone hit Arjipalli village on the Bay of Bengal coast in Ganjam district, Orissa state, India, Sunday, Oct. 13, 2013. Mass evacuations spared India the widespread deaths many had feared from a powerful cyclone that roared ashore over the weekend, officials said Sunday, as the country sorted through the wreckage of flooded towns, tangled power lines and tens of thousands of destroyed thatch homes. (AP Photo/Biswaranjan Rout)

  • A villager cuts branches of an uprooted tree that fell on his house at the cyclone hit Arjipalli village on the Bay of Bengal coast in Ganjam district, Orissa state, India, Sunday, Oct. 13, 2013. Mass evacuations spared India the widespread deaths many had feared from a powerful cyclone that roared ashore over the weekend, officials said Sunday, as the country sorted through the wreckage of flooded towns, tangled power lines and tens of thousands of destroyed thatch homes. (AP Photo/Biswaranjan Rout)

  • An Indian child searches for belongings amid the remains of her damaged house after returning to the cyclone hit village of Podampeta on the Bay of Bengal coast in Ganjam district, Orissa state, India, Sunday, Oct. 13, 2013. India began sorting through miles of wreckage Sunday after powerful Cyclone Phailin roared ashore, flooding towns and villages and destroying tens of thousands of thatch homes, but officials said massive evacuation efforts had spared the east coast from widespread loss of life. (AP Photo/Biswaranjan Rout)

  • Indian villagers look at their damaged houses after returning to the cyclone hit village of Podampeta on the Bay of Bengal coast in Ganjam district, Orissa state, India, Sunday, Oct. 13, 2013. India began sorting through miles of wreckage Sunday after powerful Cyclone Phailin roared ashore, flooding towns and villages and destroying tens of thousands of thatch homes, but officials said massive evacuation efforts had spared the east coast from widespread loss of life. (AP Photo/Biswaranjan Rout)

  • Indian men with their bicycles make way through uprooted trees fallen during Cyclone Phailin on a road in Berhampur, India, Sunday, Oct. 13, 2013. An immense, powerful cyclone that lashed the Indian coast, forcing 500,000 people to evacuate and causing widespread damage, weakened Sunday after making landfall. Several people died in the rains that fell ahead of the storm, most killed by falling branches, Indian media reported, but the situation on the ground in many areas was still unclear after Cyclone Phailin slammed into the coast Saturday evening in Orissa state, where power and communications lines were down along much of the coastline.(AP Photo/Bikas Das)

  • An Indian man, center, stands near his damaged house after returning to the cyclone hit Arjipalli village on the Bay of Bengal coast in Ganjam district, Orissa state, India, Sunday, Oct. 13, 2013. India began sorting through miles of wreckage Sunday after powerful Cyclone Phailin roared ashore, flooding towns and villages and destroying tens of thousands of thatch homes, but officials said massive evacuation efforts had spared the east coast from widespread loss of life. (AP Photo/Biswaranjan Rout)

  • Cattle stand under a tree on a snow covered meadow in Igis, Switzerland, Friday, Oct. 11, 2013. Early snow has fallen in parts of Switzerland, Germany and Austria. (AP Photo/Keystone, Arno Balzarini)

  • A sheep peers out of a hutch that is surrounded by snow in St. Ulrich in the Austrian province of Tyrol, Friday, Oct. 11, 2013. Snow fell down to 600 meters altitude in many parts of the country. (Ap Photo/ Kerstin Joensson)

  • Chad Hoffman clears snow from the entrance to his apartment building in Rapid City, S.D,, Saturday, Oct. 5, 2013. South Dakota emergency agencies are asking snowmobile operators in the Rapid City area to help find motorists stranded by an autumn storm. The National Weather Service says the storm dumped at least three and a half feet of wet, heavy snow in the Black Hills. Rapid City had 21 inches, but 31 inches was recorded just a mile southwest of the city. (AP Photo/Rapid City Journal, Chris Huber)

  • Broken tree branches cover a vehicle Saturday, Oct. 5, 2013 in Rapid City, S.D. South Dakota emergency agencies are asking snowmobile operators in the Rapid City area to help find motorists stranded by an autumn storm. The National Weather Service says the storm dumped at least three and a half feet of wet, heavy snow in the Black Hills. Rapid City had 21 inches, but 31 inches was recorded just a mile southwest of the city. (AP Photo/Rapid City Journal, Benjamin Brayfield)

  • A vehicle is stuck going the wrong way down St. Joseph Street in Rapid City, S.D,, Saturday, Oct. 5, 2013. South Dakota emergency agencies are asking snowmobile operators in the Rapid City area to help find motorists stranded by an autumn storm. The National Weather Service says the storm dumped at least three and a half feet of wet, heavy snow in the Black Hills. Rapid City had 21 inches, but 31 inches was recorded just a mile southwest of the city. (AP Photo/Rapid City Journal, Chris Huber)

  • Brenda Nolting, of Rapid City, S.D., rolls her cart to her car after stocking up on necessities Friday, Oct. 4, 2013 at a local supermarket in Rapid City. An early snow storm has swept through Wyoming and western South Dakota, dropping more than a foot of snow in places. (AP Photo/Steve McEnroe)

  • A bolt from a thunderstorm strikes down over the Pacific resort city of Acapulco, Mexico, Monday, Oct. 7, 2013. Acapulco, which was pounded by Tropical Storm Manuel a few weeks ago, is expecting scattered thunder storms Tuesday tonight. (AP Photo/Bernandino Hernandez)