They are passing those laws. As of 2020 all new construction homes sold in California must have a solar system installed. Also in many parts there's strict requirements on what type of landscaping they can have (no grass, only specific plants and drip irrigation allowed).