That's a ridiculous requirement. Owning real estate for the sole purpose of renting has been an income source for ever. Just because Airbnb exploded this practice in popularity doesn't give governments the right to say what purpose owners can use their property for. If Airbnb is causing issues, then address those specifically, not ban the practice of owning property exclusively used for renting.