Homeassistant.restart RPi 4B, triggers unwanted logical levels changes on GPIO

When programming my HA I use homeassistant.restart service to reload HA. I am using a GPIO port to trigger a delay, on a relay controlled by Arduino Uno, to give HA enough time for shutdown process. Because of it, the reload causes power supply gets off each time I reload HA. Does anyone have some experience with controlling GPIO “behaviour” during HA restart?

Look at this chart:

In the “Pull” columns it lists the state the GPIOs will be in when the RASPI is reset (down = 0, up = 3.3V). Choose your GPIO appropriately.

Thanks for reply, the problem in question fixed itself probably with a recent “flux” of updates of HA.
Now, when using “homeassitant.restart” GPIO stays untouched.