Skip to content

Commit 3022967

Browse files
julienldclaude
andcommitted
fix: use --version instead of --help in installer scripts
The installer scripts were using --help to pre-download ha-mcp dependencies, but ha-mcp didn't support --help (only --version was added in the previous commit). This was causing the Windows installer test to fail. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 66dd3ed commit 3022967

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/install-macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ printf "\n"
157157
# Step 3: Pre-download dependencies
158158
printf "${YELLOW}Step 3: Pre-downloading ha-mcp...${NC}\n"
159159
printf " This speeds up Claude Desktop startup...\n"
160-
"$UVX_PATH" ha-mcp@latest --help > /dev/null 2>&1 || true
160+
"$UVX_PATH" ha-mcp@latest --version > /dev/null 2>&1 || true
161161
printf "${GREEN} Dependencies cached${NC}\n"
162162
printf "\n"
163163

scripts/install-windows.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Write-Host ""
114114
Write-Host "Step 3: Pre-downloading ha-mcp..." -ForegroundColor Yellow
115115
Write-Host " This speeds up Claude Desktop startup..."
116116
try {
117-
& uvx ha-mcp@latest --help 2>&1 | Out-Null
117+
& uvx ha-mcp@latest --version 2>&1 | Out-Null
118118
Write-Host " Dependencies cached" -ForegroundColor Green
119119
} catch {
120120
Write-Host " Pre-download skipped (will download on first use)" -ForegroundColor Yellow
@@ -153,3 +153,6 @@ Write-Host " Replace HOMEASSISTANT_URL with your HA URL"
153153
Write-Host " Replace HOMEASSISTANT_TOKEN with your token"
154154
Write-Host " (Generate token in HA: Profile > Security > Long-lived tokens)"
155155
Write-Host ""
156+
157+
# Exit successfully
158+
exit 0

0 commit comments

Comments
 (0)