rename_device tool (ported from feature/rename-device), ruff 0.17.5, release 0.9.0 #23

Merged
tim merged 1 commit from feat/rename-device-2 into develop 2026-11-20 11:18:19 +00:00
Owner

Why

feature/rename-device (91e385f, 2026-05-18) adds a rename_device MCP tool that main never got. It was six months behind, so it is re-applied here on current develop. A force-push to the old branch is not allowed; the old branch is removed after this merges.

What

  • rename_device(device_id, name): sets name_by_user through config/device_registry/update; an empty string reverts to the integration name. Ported to the mcp 2.x annotations (title, snake_case hints), the old openWorldHint=True form is gone. Conflicts with remove_registry_entity and its tests resolved by keeping both.
  • This commit squashes the original commit, the conflict resolution and the release bump into one.
  • ruff 0.17.3 -> 0.17.5 (pre-commit rev, dev floor).
  • Version 0.9.0 (new tool) with CHANGELOG.

Checks (python:3.14 container)

353 passed (345 before + 8 new), ruff 0.17.5 check and format, mypy, bandit clean.

Release PR develop -> main follows.

🤖 Generated with Claude Code

## Why `feature/rename-device` (91e385f, 2026-05-18) adds a `rename_device` MCP tool that main never got. It was six months behind, so it is re-applied here on current develop. A force-push to the old branch is not allowed; the old branch is removed after this merges. ## What - `rename_device(device_id, name)`: sets `name_by_user` through `config/device_registry/update`; an empty string reverts to the integration name. Ported to the mcp 2.x annotations (title, snake_case hints), the old `openWorldHint=True` form is gone. Conflicts with `remove_registry_entity` and its tests resolved by keeping both. - This commit squashes the original commit, the conflict resolution and the release bump into one. - ruff 0.17.3 -> 0.17.5 (pre-commit rev, dev floor). - Version 0.9.0 (new tool) with CHANGELOG. ## Checks (python:3.14 container) 353 passed (345 before + 8 new), ruff 0.17.5 check and format, mypy, bandit clean. Release PR develop -> main follows. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Release 0.9.0: rename_device, ruff 0.17.5
All checks were successful
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 48s
3c20395583
The rename_device commit was ported onto current develop: the tool now uses the
mcp 2.x annotations (title, snake_case hints) like its neighbours. The version
becomes 0.9.0 (new tool) with a CHANGELOG section, and ruff moves to 0.17.5 in
the pre-commit rev and the dev extra floor.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
tim merged commit 4932ea9142 into develop 2026-11-20 11:18:19 +00:00
tim deleted branch feat/rename-device-2 2026-11-20 11:18:19 +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!23
No description provided.