As the lawyer informed us at that time, Federal and State laws prevail over local codes and ordinance. A city could enact a rule against any Parrot within the township, but they cannot enforce it within your home due to Federal Laws against unlawful search and seizure. The supreme court has ruled on privacy, stating that a car in your driveway falls under different rules for a search than the same car parked inside your garage.
I completely agree with you that due diligence research is critical.
In the last decade things could have changed. However, we were within our legal rights at the time, proven out by their impotency.
Research should be done not just at the local level though.
There's a reason that they can't arrest people outright for defying local ordinance. They can only issue fines. That's because these are rules, not true laws.
An arrest can only be made on a contempt of court charge after the judge has ordered you to pay fines / come into compliance.
True laws can only be made at the state and federal level. Only violation of these is "illegal".