(1) Sections 1 through 3 and 5 of chapter 436, Laws of 2005, supersede and preempt all rules, regulations, codes, statutes, or ordinances of all cities, counties, municipalities, and local agencies regarding the same subject matter. The state preemption created in this section applies to all rules, regulations, codes, statutes, and ordinances pertaining to residency restrictions for persons convicted of any sex offense at any time.
(2) This section does not apply to rules, regulations, codes, statutes, or ordinances adopted by cities, counties, municipalities, or local agencies prior to March 1, 2006, except as required by an order issued by a court of competent jurisdiction pursuant to litigation regarding the rules, regulations, codes, statutes, or ordinances.