Releases: amitfin/patch
Wait for recorder migration
New logic to wait until the recorder migration process is done.
Additional details: Recorder migration is typically running when upgrading to a new major version of Home Assistant. The migration process can take a considerable amount of time. It's not possible to restart Home Assistant during the migration process (rightfully), which is required by the patching process. The solution is to wait for the recorder migration process to complete, and only then execute the patching process, including a restart when needed.
Full Changelog: v1.6.0...v1.7.0
Restart parameter
A new restart
optional parameter. Default is true. When it's set to false, there is no HA restart after a patch.
Full Changelog: v1.5.1...v1.6.0
Ignore phantom directories
Apparently, /config/deps/lib/python3.11/site-packages
is also part of sys.path
in production, although it doesn't exist. It breaks the variable site-packages
. The solution is to ignore non-existent directories, so site-packages
points to the correct one /usr/local/lib/python3.11/site-packages
.
Destination path variables
Add 2 variables, site-packages
and homeassistant
, which can be used as a prefix in the destination
parameter.
2023.11 compatibility
The location of "SERVICE_HOMEASSISTANT_RESTART" constant was changed in HA's 2023.11 release. It broke the integration. This release fixes it.
Repair issue for base mismatch
v1.3.0 Repair issue for base mismatch
Config validation
v1.2.0 Lint
Check first if destination is identical to patch
v1.1.1 Check first if destination is identical to patch
Base file
Initial version
v1.0.0 Initial working version