eligible for medical assistance under a State plan or waiver on the basis of section 1902(a)(10)(A)(ii)(XXIV) shall be determined without regard to this subsection. . (e) Sunset of HCBS waivers Section 1915 of the Social Security Act ( 42 U.S.C. 1396n ) is amended by adding at the end the following new subsection: (m) Sunset of provisions relating to home and community-Based services (1) In general Except as provided in paragraph (2), the preceding provisions of this section, insofar as such provisions relate to a waiver for home and community-based services, shall not apply beginning with the first calendar quarter beginning on or after the date that is 5 years after the date of the enactment of this subsection. (2) Exception The Secretary may waive the application of paragraph (1) for a calendar quarter and a State if the State requests such a waiver and the Secretary determines that such a waiver is appropriate. . (f) Conforming amendments (1) In general Title XIX of the Social Security Act ( 42 U.S.C. 1396 et seq. ) is amended— (A) in section 1905(a), in the matter preceding the first numbered paragraph— (i) in clause (xv), by striking the comma at the end and inserting , or