File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
cd " $( dirname " $0 " ) /../.."
6
6
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"
Original file line number Diff line number Diff line change 32
32
"problemMatcher" : []
33
33
},
34
34
{
35
- "label" : " Upgrade Home Assistant to latest (beta )" ,
35
+ "label" : " Upgrade Home Assistant to latest (stable )" ,
36
36
"type" : " shell" ,
37
37
"command" : " .devcontainer/scripts/upgrade" ,
38
38
"problemMatcher" : []
39
39
},
40
+ {
41
+ "label" : " Upgrade Home Assistant to latest (beta)" ,
42
+ "type" : " shell" ,
43
+ "command" : " .devcontainer/scripts/upgrade --prerelease" ,
44
+ "problemMatcher" : []
45
+ },
40
46
{
41
47
"label" : " Load Home Assistant from github - dev branch" ,
42
48
"type" : " shell" ,
You can’t perform that action at this time.
0 commit comments