mirror of
https://github.com/aljazceru/addons.git
synced 2026-02-23 05:44:24 +01:00
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:
committed by
Pascal Vizeli
parent
332c0cec7c
commit
3a6cbff4b3
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user