How do I upgrade a home assistant python dependency (tellduslive)?

Home Assistant 0.84.4 provides tellduslive 0.10.4, but I need a fix that I believe is in a later release. How do I upgrade that dependency for HA?

depends on how you have installed homeassistant (hass.io, docker, python virtual environment etc).

for me (I dont have tellduslive in my system), it would be:

$ sudo -u homeassistant -H -s
$ source /srv/homeassistant/bin/activate
$ pip3 install --upgrade tellduslive

But Iā€™m not sure this will fix things for you - your link suggests the fix is in homeassistant not tellduslive?

1 Like

Thanks! I use pip3 install homeassistant to install HA on a mac. Iā€™m unable to find the activate binary, thoughā€¦

Activate is from a linux virtualenv install.

Assuming you installed on a mac as listed here https://www.home-assistant.io/docs/installation/macos/ - you dont need to ā€˜activateā€™ - or sudo to the homeassistant user.

so just try ```
$ pip3 install --upgrade tellduslive


but I suspect it wont help

That will only upgrade the ā€œglobalā€ dependency, but not the one inside ~/.homeassistant/deps

Depends on your installation method.

walaj@JonLabNUC:~$ cd ~homeassistant/.homeassistant/deps/
walaj@JonLabNUC:/home/homeassistant/.homeassistant/deps$ ll
total 8
drwxrwxr-x  2 homeassistant homeassistant 4096 May  1  2018 ./
drwxrwxr-x 12 homeassistant homeassistant 4096 Dec 27 15:39 ../

I think

pip install --target ~/.homeassistant/deps/lib/python3.9/site-packages/ --upgrade <package>

should do it.