# LED in Series on 24V line

So I have a simple circuit with a 24VDC input, a 2200ohm resistor, an LED, a solid state relay, and a float switch controlling when the LED (and SSR) are turned on.

I'm curious if running the resistor and LED directly inline like this on the 24V is going to harm the resistor over a long time. The SSR and float switch are behaving as expected and being able to run the LED, which is just simply a visible marker that the SSR is connected, in series like this instead of parallel works a lot better with my current setup.

$P = I^2 * R$
$P = 0.26 W$