Docker systemd austostart image keeps restarting in a loop

Hi

I have installed homeassistant in docker on raspbian followed the systemd autostart instructions homeassistant keeps restarting every 2 seconds anyone know why?

What is the %i in the code? and when is Execstop actually triggered?

[Unit]
Description=Home Assistant
Requires=docker.service
After=docker.service

[Service]
Restart=always
RestartSec=3
ExecStart=/usr/bin/docker run -d --name="homeassistant" -v /home/homeassistant:/config -e "TZ=Australia/Queensland" -p 8123:8123 homeassistant/raspberrypi3-homeassistant
ExecStop=/usr/bin/docker stop -t 2 homeassistant
ExecStopPost=/usr/bin/docker rm -f homeassistant

[Install]
WantedBy=multi-user.target