I know a bunch of cases popped up in CA when the CA Solar Act went into effect, attempting to prevent HOA's from regulating placement of solar panels on houses. Some courts out there said that, notwithstanding the Act, HOA could place "reasonable" regulations on placement of solar panels. Restriction just can't be arbitrary.
FWIW.