You should be able to switch by using following command.
sudo -u homeassistant bash
. /home/homeassistant/pyenv-activate.sh
Not sure how install process changed, but I did some test in the past on this https://dietpi.com/forum/t/home-assistant-supervised-on-dietpi/4726/8
Result was a system having software installed conflicting with DietPi