They look for all the world like any other LED, though embedded in the plastic dome is an integrated circuit to do all that flashing work ... Well, he wasn’t able to make a 555 flash the ...
so the blinking only occurs in darkness. Of course, the resistor also has to have a sufficient view of the LED. You might use this as a safety light that only works in the dark. A simple circuit ...