If, like me, you are/were using venv, and was concerned with the upcoming Python 3.5 deprecation, despair no more: you can have a working solution using venv on Buster.
Raspian Buster was released on the 24th of June.
I was able to upgrade my RPi to it, and HA works.
To do this, here are the commands:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
Then manually edit the following files, and change all occurrences of āstretchā to ābusterā
/etc/apt/sources.list
and /etc/apt/sources.list.d/raspi.list
Then continue with the same commands as above :
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
Then reboot, and you have Buster.
Then you have to create a new venv, using Python 3.7 of course. Use the same method that you used to create the initial one.
One issue I found:
The logbook
, recorder
and history
components do not work. Home Assistant says that they are missing dependencies.
I had them as MySQL under Stretch, but now Buster installs MariaDB.
Per the instructions under the recorder component, I need to install the pip mysqlclient. That fails because it cannot find the mysql_config
command, which used to be part of libmysqlclient-dev
. But the equivalent libmariadbclient-dev
is missing this command.
The solution to the above is to do:
python3 -m pip install PyMySQL
Then in your configuration.yaml
, change the db_url
to:
db_url: 'mysql+pymysql://localhost/DBNAME?charset=utf8'
All works now.