Skip to content

Deduplicate remote cleanup logic and fix branding casing#17

Merged
kongo09 merged 1 commit intomainfrom
refactor-cleanup-dedup
Mar 6, 2026
Merged

Deduplicate remote cleanup logic and fix branding casing#17
kongo09 merged 1 commit intomainfrom
refactor-cleanup-dedup

Conversation

@kongo09
Copy link
Copy Markdown
Owner

@kongo09 kongo09 commented Mar 6, 2026

Summary

  • Refactored _handle_removed_remote to call _cleanup_remote_entities() instead of duplicating the same entity/device removal logic (net -34 lines)
  • Fixed "Remote buttons" → "Remote Buttons" in manifest.json, hacs.json, and config_flow.py

Test plan

  • python -m pytest tests/ -x -q — 57 tests pass
  • ruff check && ruff format --check — clean
  • grep -r "Remote buttons" — no remaining occurrences

🤖 Generated with Claude Code

Extract shared entity/device cleanup into _cleanup_remote_entities()
and call it from both _handle_removed_remote and _async_options_updated,
eliminating duplicated code.

Also fix "Remote buttons" → "Remote Buttons" in manifest.json, hacs.json,
and config_flow.py for consistent branding.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kongo09 kongo09 merged commit 285400c into main Mar 6, 2026
4 checks passed
@kongo09 kongo09 deleted the refactor-cleanup-dedup branch March 6, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant