As my HA config is constantly evolving I sometimes am not sure on which version of my config HA is currently running on. Sometimes I forget to pull the latest version from my git repo to my server and wonder why something is not showing up in the frontend.
I am now showing a sensor on my Home View with the Current commit:
On my server I am using this script which pulls the latest version from Git, writes the commit info to a text file and restarts my Docker Container.
A command_line sensor and template sensor show the content of the file in the frontend:
Just to be right, you setup git on your host OS, and not in a docker container . But how do you then execute git from HASS, or do you SSH in to your host every time?