By January 1, 2024, the state building code council shall adopt by rule an amendment to the current energy code that waives the requirement for unchanged portions of an existing building used for residential purposes to meet the current energy code solely because of the addition of new dwelling units within the building. New dwelling units created within the existing building must meet the requirements of the current energy code.