; or (viii) any byproduct of a wood or paper mill operation, including lignin in spent pulping liquors; and (B) at a facility that the Secretary has certified, on an annual basis, is in compliance with all applicable Federal and State environmental permits, including— (i) in the case of a facility that commences operation before the date of enactment of this section, compliance with emission standards under sections 112 and, as applicable, 129 of the Clean Air Act ( 42 U.S.C. 7412 , 7429) that apply as of the date of enactment of this section to new facilities within the applicable source category; and (ii) in the case of a facility that produces electric or thermal energy from the combustion, pyrolization, or gasification of municipal solid waste, certification that each local government unit from which the waste originates operates, participates in the operation of, contracts for, or otherwise provides for recycling services for residents of the local government unit. (23) Renewable energy The term renewable energy means solar, wind, ocean, current, wave, tidal, or geothermal energy. (24) Retail electricity supplier (A) In general The term retail electricity supplier , as determined for each calendar year, means an entity in the United States that sold not fewer than 20 megawatt-hours of electric energy to electric consumers for purposes other than resale during the preceding calendar year. (B) Inclusions and limitations For purposes of making a determination under subparagraph (A) with respect to an entity— (i) any sale of electric energy made by an affiliate of the entity to an electric consumer (other than to a lessee or tenant of the affiliate) for purposes other than resale may be considered to be a sale made by the entity