Rather than let a light sensor deciding when my flood light should be on or off, I wired the floodlight into a switch and used this to cover the sensor. You may need to print it at 98 or 99% based on the material to get a nice press fit.
The light this was designed for was the Halo TGS3S401DSRB from Cooper Lighting Solutions.
The author marked this model as their own original creation.