If that's true, then your strategy should be to buy a house with solar already installed and paid for. You'd get the house at regular prices, but pay much less for electricity.
On some sunny winter days we turn off central heating and use the free electricity.
I buy a house for $100k. I put $15k of solar panels on it. I go to sell it a year later, and sell it for $100k. That is what it means for solar panels not to add value - I just lost my $15k investment.
Incidentally, that appears to be the case for residential solar in CA. It doesn’t factor in appreciably to the price of a home.
Solar panels in this type of deal are debt incurred by the home owner so the cost should be deducted from the sale price. In other words, do not buy a house with mortgaged solar panels.
Buying is all very well if you're sure to stay in the same place for 10+ years - but if you move in that time, better hope you place a high value on feeling you've helped the environment.
Not that having a mandatory loan you try to get prospective buyers to pay for is a better decision, of course...