It is probably not an issue but many threads in the past stated that there was no where in the nec that required a switch to be in the room or near the room that it controlled. Well, that has finally changed
I wonder if they will soon require an outdoor light to be switched near the door where the light is illuminating.210.70(A)(1) Habitable Rooms.
At least one lighting outlet controlled by a listed wall-mounted control device shall be installed in every habitable room, kitchen, and bathroom. The wall-mounted control device shall be located near an entrance to the room on a wall.
Exception No. 1: In other than kitchens and bathrooms, one or more receptacles controlled by a listed wall-mounted control device shall be permitted in lieu of lighting outlets.
Exception No. 2: Lighting outlets shall be permitted to be controlled by occupancy sensors that are (1) in addition to listed wall-mounted control devices or (2) located at a customary wall switch location and equipped with a manual override that will allow the sensor to function as a wall switch