65852.23.
(a) As used in this section, the following definitions shall apply:(1) “Accessory dwelling unit” means an accessory dwelling unit, as defined in Section 65852.2, that was constructed prior to January 1, 2008.
(2) “Building code” includes, but is not limited to, a local building code, the California Building Standards Code, or the International Building Code.
(3) “Local agency” means a city, county, or city and county, whether general law or chartered.
(b) (1) Notwithstanding any other law, except as provided in paragraph (2), a local building inspector may waive some or all requirements of an applicable building code with respect to an accessory dwelling unit for the purpose of issuing a building permit for that accessory dwelling unit.
(2) Notwithstanding paragraph (1), any requirements of an applicable building code implementing Section 17920.3 of the Health and Safety Code, relating to substandard buildings, shall not be waived.
(3) An accessory dwelling unit issued a permit pursuant to this section shall not count towards meeting the local agency’s allocation of the regional housing need pursuant to Section 65584.
(c) This section shall only apply if the local agency has, by ordinance or resolution, made the provisions of this section applicable within its jurisdiction. The local building inspector may exercise the authority conferred by this section for five years following the date of enactment of the ordinance or resolution making the provisions of this section applicable within the jurisdiction of the local agency.