Home Assistant plugin on CORE - Python version 3.8 is deprecated

tprelog

Patron
Joined
Mar 2, 2016
Messages
291
Support for Python version 3.8 is deprecated and will be removed in Home Assistant 2022.1

I expect to have the plugin updated before Python 3.8 is removed

If you want to upgrade python now, you can do so manually using the following commands

Code:
iocage console $JAIL_NAME
# press 0 to exit menu
pkg install -y python39 py39-sqlite3
sysrc homeassistant_python=/usr/local/bin/python3.9
service homeassistant reinstall homeassistant
 

tprelog

Patron
Joined
Mar 2, 2016
Messages
291
Plugin Version 7 - 2021.11.2

I pushed a small update that will switch to Python 3.9 for all clean installs

Running a Plugin UPDATE should ensure all the requirements are met for Python 3.9 but your existing services (virtualenv) will not automagically update.

After you update to version 7

  • Your installed services will continue to run a virtualenv with python 3.8
  • Switch a virtualenv to python 3.9 by reinstalling the service

Reinstall the Home Assistant service (virtualenv)

  • Python 3.8 has been deprecated
  • Support will be dropped in Home Assistant 2022.1

Code:
iocage console $JAIL_NAME
# press 0 to exit menu
sysrc homeassistant_python=/usr/local/bin/python3.9
service homeassistant reinstall homeassistant


Reinstall the AppDaemon or Configurator service (virtualenv)

  • This is optional for these services
  • Reinstall using console menu

For appdaemon and configurator services, use number 8 to remove the virtualenv

4380a848571fa6ad8b934fc91889c60054e087f8.png


When the service is removed, number 8 will change back to install

c11664f5b25f4ee03e1f0b8838070c55426cb595.png
 
Top