luci-app-homeassistant: update image tag

This commit is contained in:
jjm2473
2023-03-12 19:13:38 +08:00
parent ac5bdf659e
commit 74f6dd5d54
4 changed files with 10 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
include $(TOPDIR)/rules.mk
PKG_VERSION:=1.1.1-20230108
PKG_VERSION:=1.1.2-20230312
PKG_RELEASE:=
LUCI_TITLE:=LuCI support for homeassistant

View File

@@ -22,8 +22,10 @@ o = s:option(Value, "image_name", translate("Image").."<b>*</b>")
o.rmempty = false
o.datatype = "string"
o:value("homeassistant/home-assistant:latest", "homeassistant/home-assistant:latest")
o:value("homeassistant/home-assistant:2023.3.3", "homeassistant/home-assistant:2023.3.3")
o:value("homeassistant/home-assistant:dev", "homeassistant/home-assistant:dev")
o:value("ghcr.io/home-assistant/home-assistant:stable", "ghcr.io/home-assistant/home-assistant:stable")
o:value("ghcr.io/home-assistant/home-assistant:2022.11.4", "ghcr.io/home-assistant/home-assistant:2022.11.4")
o:value("ghcr.io/home-assistant/home-assistant:2023.3.3", "ghcr.io/home-assistant/home-assistant:2023.3.3")
o.default = "homeassistant/home-assistant:latest"
local blocks = homeassistant_model.blocks()

View File

@@ -1,4 +1,4 @@
config homeassistant
option 'config_path' ''
option 'image_name' 'homeassistant/home-assistant:latest'
option 'time_zone' ''
option 'time_zone' ''

View File

@@ -35,15 +35,19 @@ do_install() {
RET=$?
if [ "$RET" = "0" ]; then
echo "Wait 10 seconds for homeassistant boot..."
sleep 10
do_hacs_install
fi
}
do_hacs_install() {
echo "wget -O - https://get.hacs.xyz | bash -" | docker exec -i homeassistant bash -
echo "Install HACS"
echo "rm -f custom_components/hacs.zip config/custom_components/hacs.zip ; wget -O - https://get.hacs.xyz | bash -" | docker exec -i homeassistant bash -
sleep 3
echo "restart homeassistant"
docker restart homeassistant
return 0
}
usage() {