Skip to content

Version 8 - 2022.7.0

Latest
Compare
Choose a tag to compare
@tprelog tprelog released this 17 Jul 13:56
1513de9

Switch to Python 3.10

  • Home Assistant switched to Python 3.10 (clean install only)
  • Appdaemon and Configurator remain at Python 3.9

In an effort to make managing python easier, I'm going to have it removed completely from the plugin manifest. Moving forward python will be initially installed from post_install.sh and reinstalled after Plugin UPDATES according to the version set in the rcvar. Hopefully this will allow users more freedom to upgrade Python (or not) at their own discretion.

Upgrading python for your existing plugin will require manual intervention. On average this will take at least 15-30 minutes to complete. However a few users have reported waiting over an hour for the Home Assistant web UI to become available again! The amount of time it takes will vary depending on the speed of your NAS and the number of integrations you have added to Home Assistant.

Remember to take a snapshot of your jail before attempting to upgrade python

iocage snapshot JAIL_NAME -n SNAPSHOT_NAME

Install the new python version then reinstall the Home Assistant service (virtualenv)

iocage console JAIL_NAME
# Press 0 to exit the menu
pkg install python310 py310-sqlite3
sysrc homeassistant_python=/usr/local/bin/python3.10
service homeassistant reinstall homeassistant

If something goes wrong you can revert to the snapshot you took before

iocage stop JAIL_NAME
iocage rollback JAIL_NAME -n SNAPSHOT_NAME

Add update-overlay script

This script should finally provide an easy way to update the plugin overlay without running a Plugin UPDATE. It can be run from the jail's console. With no options, it will pull the overlay directory from the master branch

# Press 0 to exit the menu
update-overlay

Or you can pull the overlay directory from the latest tagged release

# Press 0 to exit the menu
update-overlay release