I think the pertinent question is whether the local government has the power to make a law such as this one.
After all, the Constitution protects us from even local government and I am of the opinion that a homeowner, and their children, have the right to live in their own home.