Laws prohibiting HOAs, etc. from restricting homeowners from installing solar equipment. Also other rights such as penalties for HOAs.
https://programs.dsireusa.org/system/program/detail/1253/california-solar-rights-act
Also see California Single-family Affordable Solar Housing – SASH Program