In the middle of a new build. I have an Intellibrite 5G color led light. My electrician installed the light niche and ran conduit back and stubbed up right where the subpanel will sit. He says the light cord can run directly into the panel and all connections can be made there. Distance from pool to panel is about 25 feet and there is a 50 foot cord so plenty of wire to do this but don't want a problem with inspection. I was reading 680.23 and 680.24 of NEC code and it says to run to junction box or other enclosure. Does the subpanel count as a listed enclosure?