A county board of supervisors or county zoning commission shall consider a home for persons with disabilities a family home, as defined in section 335.25, for the purposes of zoning, in accordance with chapter 504C.