Any type of lamp is ideally best suited to infrequent switching. All starts and restarts will eventually reduce lamp life, so it's a trade-off in most cases.
Certainly pretty much any discharge lamp (including fluorescents and CFL's) will last longer if switched on and left on for a few hours before being turned off. Even incandescents will thank you for not constantly switching them as well. Don't really know all that much about LED's as I try and keep them at arm's length..!
Fluorescent:
If the preheating is done correctly, the starting wear becomes comparable to less than a minute of continuous bern time. If you add the electricity cost for that time, the break even point becomes few 10s of seconds. So if such setup is switched off for longer than a minute, it will actually last longer. Of course, there are huge differences in ballasts performance, generally those using longer preheat time with not that boosted heating power tend to wear the lamps the least.
LEDs:
These age mainly by temperature (generally each 10degC hotter means rwice as fast wear), then the current (higher current means faster wear, but compare to the thermal effect that is very minor). But because some wear mechanisms lead internal leakages (a kind of parallel resistor), at lower DC current the wear leads to no light or color shift faster (that is, why dimming is virtually exclusively implemented by PWM and not DC current reduction - as the constant peak current ensures even the worn out LEDs are able to still operate)
Ballasts:
But with both there is certain ballast wear, mainly the power on surge (regardless if it is the charging current spike with a capacitor filtered rectifier in electronic, or a magnetic "thud" causing wires to rub each other in the winding dur to electromagnetic forces).
For frequent switching is then better to have the light sensor switching done as part of the ballast functionality and not switching the power to a ballast by the sensor (then there is no inrush, as the power input is always on).
With LEDs the thing is a bit simpler: Because they dont need any high voltage, nor have any problems restriking, for frequent switching with separate sensor is better to look for designs without the input capacitors. The good signature for these is their 120/100 Hz flicker (it is the in the end the smoothing filter capacitor, what makes the reliability problems).
But generally a good quality ballast should outlast the life of the relay in the sensor...