When electrical hazards can justify leaving
Possibly. California law recognizes that when a rental becomes truly unsafe or unlivable and the landlord will not fix it, a tenant may have grounds to move out — but this is a serious step with legal requirements.
The idea is called "constructive eviction": if a dangerous condition, like a severe electrical hazard the landlord ignores, effectively forces you out of a home you can no longer safely occupy, you may be able to end the lease. Usually this requires that the problem be serious, that you gave the landlord written notice and time to repair, and that the landlord failed to act.
Leaving without meeting these conditions can leave you owing rent or facing other claims, so timing and documentation matter.
Before you give notice or move out, it is smart to confirm that your situation qualifies and that you have the right paperwork. A free, confidential review can look at your facts and help you understand whether breaking the lease is a safe option for you.
This is general information about California tenant rights, not legal advice. Every situation is different.