A federal judge in Los Angeles refused on Monday to throw out a class action against Toyota Motor Corp. over defective headlights on their Prius vehicles.

The case alleges that Toyota failed to inform consumers that the headlights on recent-model Priuses can sporadically turn on and off, creating a safety hazard.