luci-app-homeassistant: update image tag
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
config homeassistant
|
||||
option 'config_path' ''
|
||||
option 'image_name' 'homeassistant/home-assistant:latest'
|
||||
option 'time_zone' ''
|
||||
option 'time_zone' ''
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user