Adding /addon to root for monitoring #3180
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With the changes to the addon and moving hass.py into the main batpred repository this has removed some of the modifications I have made to the file in the addon as they will now always be overwritten.
This prevents the docker image in some versions from automatically rebooting when updating the application python files.
Many users in docker mount the config directory using bind mounts to allow for configuration to persist across updates therefore if the python files are all stored in the config directory there is a risk of file and version conflicts
So, In the docker image these python are stored in the /addon directory allowing the container to be completely removed and updated without affecting the configuration files
This also allows the container to be fully reset without impacting any other files and logs
This approach might also be beneficial for the Home Assistant Addon although I don't have much experience with the addon at the moment but will look at this for future versions
Let me know what you think