Skip to content
Kitbay

ha-deprecation-cleanup

Apache-2.0Updated on Nov 11, 202692,189GitHub starsIncludes scripts

A maintainer skill in Home Assistant's core repository that finds deprecations whose removal version has been reached on the dev branch and prepares one cleanup branch for each.

What the skill teaches

A maintainer skill in Home Assistant's core repository that finds deprecations whose removal version has been reached on the dev branch and prepares one cleanup branch for each. A bundled Python script, run with uv in a separate worktree, lists the due deprecations. The agent skips some (the demo integration, or ones with an open pull request already), leaves risky cases such as core APIs still used by custom integrations for a person to decide, removes the deprecated code completely, runs tests and linters, commits and drafts a pull request description from the repository's template. It may only create new cleanup branches and never opens pull requests, comments, force-pushes or deletes remote branches.

Capabilities

  • Find deprecations due for removal on dev
  • Prepare one cleanup branch per deprecation
  • Run tests and linters on each branch
  • Draft a pull request description from the template