Fix delete_config payloads, add remove_registry_entity (0.6.0) #9

Merged
tim merged 1 commit from develop into main 2026-10-13 11:55:31 +00:00
Owner

Summary

  • Helper deletes (input_*, counter, timer) send <domain>_id instead of item_id.
  • automation/script/scene deletes use REST DELETE /api/config/<domain>/config/<id> (there is no websocket delete command for them).
  • delete_config dry run verifies the object exists in the UI-managed store and returns a clear error for YAML-defined or orphaned objects.
  • New remove_registry_entity tool: dry run by default, refuses anything that is not an orphan (state unavailable with restored attribute).
  • CHANGELOG entry and version bump to 0.6.0.

Testing

  • 333 tests pass, ruff and mypy clean (run on Python 3.13 locally, CI uses 3.14).
  • Not run against a live Home Assistant. After deploy: dry run, then confirm remove_registry_entity for the four orphaned input_text helpers.

🤖 Generated with Claude Code

## Summary - Helper deletes (`input_*`, `counter`, `timer`) send `<domain>_id` instead of `item_id`. - `automation`/`script`/`scene` deletes use REST `DELETE /api/config/<domain>/config/<id>` (there is no websocket delete command for them). - `delete_config` dry run verifies the object exists in the UI-managed store and returns a clear error for YAML-defined or orphaned objects. - New `remove_registry_entity` tool: dry run by default, refuses anything that is not an orphan (state `unavailable` with `restored` attribute). - CHANGELOG entry and version bump to 0.6.0. ## Testing - 333 tests pass, ruff and mypy clean (run on Python 3.13 locally, CI uses 3.14). - Not run against a live Home Assistant. After deploy: dry run, then confirm `remove_registry_entity` for the four orphaned `input_text` helpers. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Fix delete_config payloads, add remove_registry_entity, bump to 0.6.0
All checks were successful
Test & Build / Lint and test (push) Successful in 28s
Test & Build / Build & Push Docker Image (push) Successful in 4m32s
Test & Build / Create Forgejo Release (push) Has been skipped
Test & Build / Lint and test (pull_request) Successful in 28s
Test & Build / Build & Push Docker Image (pull_request) Has been skipped
Test & Build / Create Forgejo Release (pull_request) Has been skipped
Security / Security scan (pull_request) Successful in 49s
c3a6abde0d
- Helper deletes send <domain>_id instead of item_id
- automation/script/scene deletes use REST /api/config instead of a
  nonexistent websocket command
- delete_config validates existence in the target store and reports
  YAML-defined or orphaned objects clearly
- New remove_registry_entity tool (dry run by default, orphans only)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
tim merged commit b282d0d152 into main 2026-10-13 11:55:31 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
tim/hass-mcp!9
No description provided.