Skip to content

Commit 6dfc826

Browse files
committed
Aggiunge la voce di aggiornamento di HA all'ultima stable
1 parent ec38ad2 commit 6dfc826

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.devcontainer/scripts/upgrade

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,13 @@ set -e
44

55
cd "$(dirname "$0")/../.."
66

7-
uv pip install --system --prefix "/home/vscode/.local/" --upgrade --prerelease allow homeassistant
7+
if [[ "$1" =~ prerelease|beta ]]; then
8+
# Install the latest beta version of Home Assistant
9+
uv pip install --system --prefix "/home/vscode/.local/" --upgrade --prerelease allow homeassistant
10+
else
11+
# Install the latest stable version of Home Assistant
12+
uv pip install --system --prefix "/home/vscode/.local/" --upgrade allow homeassistant
13+
fi
14+
15+
# Show the installed version of Home Assistant
16+
echo -e "The installed Home Assistant version is $(hass --version).\n"

.vscode/tasks.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,17 @@
3232
"problemMatcher": []
3333
},
3434
{
35-
"label": "Upgrade Home Assistant to latest (beta)",
35+
"label": "Upgrade Home Assistant to latest (stable)",
3636
"type": "shell",
3737
"command": ".devcontainer/scripts/upgrade",
3838
"problemMatcher": []
3939
},
40+
{
41+
"label": "Upgrade Home Assistant to latest (beta)",
42+
"type": "shell",
43+
"command": ".devcontainer/scripts/upgrade --prerelease",
44+
"problemMatcher": []
45+
},
4046
{
4147
"label": "Load Home Assistant from github - dev branch",
4248
"type": "shell",

0 commit comments

Comments
 (0)