Commit 51e457c
fix: use correct WebSocket command type for Supervisor API (#246)
* docs: update uvx instructions to use @latest
Ensures users always get the latest version when running via uvx,
avoiding issues like the read-only filesystem bug that was fixed
in v4.7.4.
Updated all uvx references in:
- README.md (Claude Desktop, Claude Code, VSCode button, web clients)
- docs/macOS-uv-guide.md
- docs/Windows-uv-guide.md
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: use correct WebSocket command type and response structure for Supervisor API
Two issues fixed:
1. Change `hassio/api` to `supervisor/api` - the correct WebSocket command type
as defined in Home Assistant Core (WS_TYPE_API = "supervisor/api")
2. Fix response parsing - response structure is `result.addons` not `result.data.addons`
The code was looking for a nested `.data` key that doesn't exist.
This fixes the "Unknown command" error and empty add-ons list when calling
ha_list_addons() and ha_list_available_addons() on Home Assistant OS installations.
Fixes #243
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent d3f16e6 commit 51e457c
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
154 | | - | |
| 155 | + | |
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| |||
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
175 | | - | |
| 176 | + | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| |||
0 commit comments