Do sunrise offsets survive a restart?

I turn off some lights in my home three hours after sunrise.

If I restart HA within that 3 hour window, does that mean that the offset trigger won’t happen?

I figure the inner workings are either:

  1. HA starts a timer at sunrise with the correct offset
  2. The event engine keeps track of “sunrise + offset” and triggers then as if it’s an “after:” time comparison

It’s the second - HA creates Sun events frequently to keep trackl of the amount of time since sunrise/sunset so the restart should not affect it at all.

Thanks for the clarification!

Coming back to this later. The thing that made me question this is that one of my sunrise offsets didn’t have a + at the beginning. Turns out offsets require a + or -