Commit 83ad3b4
feat: replace text boxes with nested toggle UI for tool config
Replace the flat comma-separated disabled_tools/pinned_tools text boxes
with a Grocy-style nested object schema that renders as collapsible
sections with toggles in the HA Supervisor UI.
- enabled_tools: 23 collapsible groups, each with a group-level
"enabled" master toggle and individual tool toggles (ON=enabled)
- pinned_tools: same group structure for pinning tools in search mode,
with currently-pinned tools defaulting to ON
- Restore enable_yaml_config_editing as a standalone bool toggle
- start.py flattens the nested config into comma-separated env vars
(DISABLED_TOOLS, PINNED_TOOLS) for the server
- server.py _apply_tool_visibility respects both the flat list and
the enable_yaml_config_editing toggle
- Mandatory tools (ha_search_entities, ha_get_state, ha_get_overview,
ha_report_issue) are re-enabled regardless of user config
- Full translations with friendly names and descriptions for all 92 tools
- Uses 3-level nesting (supported since Supervisor 2025.09.1)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 1831455 commit 83ad3b4
12 files changed
Lines changed: 2970 additions & 85 deletions
File tree
- homeassistant-addon-dev
- translations
- homeassistant-addon
- translations
- src/ha_mcp
- tools
- tests/src
- e2e/workflows/filesystem
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
0 commit comments