unofficialmatt / home-assistant

🏠 Configuration for my Smart Home, which is powered by Home Assistant
1 stars 0 forks source link

Issue with pychromecast #1

Closed unofficialmatt closed 4 years ago

unofficialmatt commented 5 years ago

After upgrading, pychromecast can sometimes break and the interface will fail to load.

This is a bit of trial and error, but it seems the best way to fix it is with the following code:

sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get clean && sudo apt-get autoremove && sudo hassbian-config upgrade homeassistant
pip install --upgrade pip
sudo su -s/bin/bash homeassistant
source /srv/homeassistant/bin/activate
pip install pychromecast==3.2.1 --upgrade -vvv --no-cache-dir
exit
pip show pychromecast
sudo reboot
unofficialmatt commented 5 years ago

Actually this seems to be an issue with spotcast, which is trying to use a different version of pychromecast to the core - this then creates conflict. Have disabled for now, to revisit.

unofficialmatt commented 5 years ago

Changed the manifest.json file in spotcast to use the same version number of pychromecast as core.