Neither the state residential and fire building code nor any residential and fire building code adopted by a political subdivision of the state adopted after May 24, 2010, shall include a requirement that fire sprinklers be installed in a single-family dwelling or a residential building that contains no more than two dwelling units.