Skip to content

Drop stale frontend hint from the new-domain sync warning - #3011

Merged
J. Nick Koston (bdraco) merged 1 commit into
mainfrom
shorten-new-domain-warning
Nov 4, 2026
Merged

J. Nick Koston (bdraco) merged 1 commit into
mainfrom
shorten-new-domain-warning

Conversation

@bdraco

Copy link
Copy Markdown
Member

What does this implement/fix?

Drop the frontend file hint from the sync's new-domain warning, since after esphome/device-builder-frontend#2069 the frontend reads domains from the catalog and the named symbols no longer exist.

# before
"New upstream platform domain(s): %s. Check the frontend's category "
"handling (ComponentCategory, filterByDomain, PLATFORM_DOMAINS).",
# after
"New upstream platform domain(s): %s",

Related issue or feature (if applicable):

Types of changes

  • Bugfix (non-breaking change which fixes an issue) — bugfix
  • New feature (non-breaking change which adds functionality) — new-feature
  • Enhancement to an existing feature — enhancement
  • Breaking change (fix or feature that would cause existing functionality to not work as expected) — breaking-change
  • Refactor (no behaviour change) — refactor
  • Documentation only — docs
  • Maintenance / chore — maintenance
  • CI / workflow change — ci
  • Dependencies bump — dependencies

Frontend coordination

Checklist

  • The code change is tested and works locally.
  • Pre-commit hooks pass (ruff, codespell, yaml/json/python checks).
  • Tests have been added or updated under tests/ where applicable.
  • components.index.json / definitions/components/*.json have not been hand-edited (regenerate via script/sync_components.py if a sync is needed).
  • Architecture-level changes are reflected in docs/ARCHITECTURE.md and/or docs/API.md.

@bdraco

Copy link
Copy Markdown
Member Author

ESPHome Bot (@esphbot) review

@github-actions github-actions Bot added the maintenance Maintenance / chores label Nov 4, 2026
@esphbot

Copy link
Copy Markdown
Contributor

PR Review — Drop stale frontend hint from the new-domain sync warning

Clean, minimal log-text change. Merge-ready, ideally once esphome/device-builder-frontend#2069 lands.

Strengths:

  • It removes a pointer to frontend symbols (ComponentCategory, filterByDomain, PLATFORM_DOMAINS) that are gone after the companion PR, so the warning won't send maintainers looking for code that no longer exists.
  • The warning still names every new domain through %s with the sorted list.
  • The existing test at tests/test_sync_components_sub_readings.py:284 checks the prefix "New upstream platform domain(s): ['packet_interface']". That prefix is unchanged, so the test still passes with no edit.
  • Nothing else in the repo still mentions the old hint text (checked with grep).

No issues found.



Checklist

  • Change matches PR description
  • Existing tests remain valid
  • No stale references to removed hint text

Automated review by Kōan (Claude) HEAD=5276707 16s

@esphbot ESPHome Bot (esphbot) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

No blocking issues found — ready to merge.

@codspeed

codspeed Bot commented Nov 4, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 28 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing shorten-new-domain-warning (5276707) with main (75bc411)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.76%. Comparing base (75bc411) to head (5276707).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3011      +/-   ##
==========================================
- Coverage   99.76%   99.76%   -0.01%     
==========================================
  Files         300      300              
  Lines       26388    26388              
==========================================
- Hits        26326    26325       -1     
- Misses         62       63       +1     
Flag Coverage Δ
py3.12 99.72% <ø> (-0.01%) ⬇️
py3.14 99.61% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bdraco
J. Nick Koston (bdraco) marked this pull request as ready for review November 4, 2026 23:30
Copilot AI balanced review requested due to automatic review settings November 4, 2026 23:30
@bdraco
J. Nick Koston (bdraco) merged commit c561e46 into main Nov 4, 2026
27 checks passed
@bdraco
J. Nick Koston (bdraco) deleted the shorten-new-domain-warning branch November 4, 2026 23:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the warning-text cleanup that removes obsolete frontend guidance.

No open issues 🎉

What changed in this PR

Removes outdated frontend guidance from the catalog sync’s new-domain warning, following the catalog-driven domain handling introduced in #3008 and frontend PR #2069.

Changes:

  • Drops references to obsolete frontend symbols from the warning text.
  • Preserves the warning level and list of newly detected domains; sync behavior is unchanged.
File Description
script/​sync_components.py Simplifies the new-domain warning by removing stale frontend guidance.

Review effort: Balanced

@github-actions github-actions Bot locked and limited conversation to collaborators Nov 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

maintenance Maintenance / chores

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants