Unable to update homeassistant

I’m running HomeAssistant on a RaspberryPi which I have recently updated to the current level including firmware. Now when I attempt to update Home Assistant with the following commands:

sudo su -s /bin/bash homeassistant
source /srv/homeassistant/homeassistant_venv/bin/activate
pip3 install --upgrade homeassistant

The first command returns:

No passwd entry for user ‘homeassistant’

Help!

Never mind – my stupid error. I have too many raspberry pi’s – I used SSH to access the wrong one! (blush)