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.
This commit is contained in:
Dougal Matthews
2018-12-20 10:53:46 +00:00
committed by Pascal Vizeli
parent 332c0cec7c
commit 3a6cbff4b3

View File

@@ -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)"