Loosing integrations on power outage?

I use docker to run Home assistant and deconz image (zigbee). I also have some Shelly wifi stuff using shelly integration.

Now if I have a power outage, HA starts before my router does and thus shelly stuff wont work, I guess that is expected. However, once my router comes online and all, shelly integration fails to initialize. I have to reboot HA in order for it to work again. Also, sometimes, the same thing happens to deconz.

I wonder why this happens and how I can avoid it? Would it be possible to stop HA from booting until it dectects network somehow?