Autorestart of HA on reboot

Tags: #<Tag:0x00007f327489f870>

Hi all,

I am trying to autorestart my Home Assistant after a reboot. Normally I do start home assistant as following in cmd:

/srv/homeassistant/bin/hass -c "/home/pi/.homeassistant"

I have the following script to autorestart:

[Unit]
Description=Home Assistant
After=network-online.target
[Service]
Type=simple
User=pi
WorkingDirectory=/home/pi/.homeassistant
ExecStart=/srv/homeassistant/bin/hass -c "/home/pi/.homeassistant"

[Install]
WantedBy=multi-user.target

followed the instructions on Autostart HA

The autostart is working, but my components in Home Assistant are not connecting correctly. I get the following log:

Can someone please help?

Thanks