From 3a6cbff4b3a693440108121895305586f264d25d Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Thu, 20 Dec 2018 10:53:46 +0000 Subject: [PATCH] Show the installed homeassistant version (#490) This can be useful if you use "latest" but are not sure which version is the latest or if you look at the log output and it isn't clear if the addon was ran since the latest release. --- check_config/run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check_config/run.sh b/check_config/run.sh index 3b49b12..4f22541 100644 --- a/check_config/run.sh +++ b/check_config/run.sh @@ -20,7 +20,9 @@ then exit 1 fi -echo "[Info] Install done, check config now" +INSTALLED_VERSION="$(pip freeze | grep homeassistant)" + +echo "[Info] Installed $INSTALLED_VERSION, check config now" cp -fr /config /tmp/config if ! HASS_OUTPUT="$(hass -c /tmp/config --script check_config)"