As long as demand for housing continues to outstrip supply, especially if demand continues to grow at a rate exceeding the growth in supply, then there will always be money to be made in housing.
This law in California allows for 5% annual increases after inflation. It’s hard to see how this will even hurt landlords. Creating a pretty clear incentive to perform a maximum increase ever year doesn’t seem great for renters though.