You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace obsolete zigbee_* ids in gate test case and script/check_catalog.py with report. esphome/esphome/pull/22482 removes the zigbee ids from the schema and this test fails.
Related issue or feature (if applicable):
fixes
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
System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.77%. Comparing base (27b50f9) to head (5bb05eb). ⚠️ Report is 7 commits behind head on main.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The catalog gating expectations still require the removed sensor.ct_clamp.zigbee_sensor field, causing the smoke check to fail when the upstream ESPHome version is synced.
Removing this assertion leaves the live-manifest test without a Zigbee gate check, so changes to the inherited Zigbee schema can pass unnoticed. Optional: replace it with assert gates.get(("report",)) == "zigbee"; upstream's existing report gate is unchanged by esphome/esphome#22482.
PR Review — Remove zigbee_switch assertion from test
Merge-ready. This update fixes every point from the previous review.
What the PR does well:
The live-manifest test at tests/test_sync_components_component_gates.py:212 no longer drops the Zigbee check. It now asserts report → zigbee. That gate stays in upstream after [core][zigbee] move ids back into zigbee component esphome#22482, so the test still catches a regression in the inherited Zigbee gate.
In script/check_catalog.py, the _GATING_EXPECTATIONS entry and the comment block above it now use report and "zigbee entity options". The stale zigbee_sensor example is gone.
MQTT and web_server gate checks are unchanged.
Notes:
The zigbee_switch entry at tests/test_sync_components_component_gates.py:91 stays on purpose. It uses a made-up schema to test OnlyWith gate extraction and doesn't depend on the upstream schema.
script/sync_components.py:820-832 still lists the zigbee_* names in the advanced-field set. Those entries do no harm: once upstream drops these fields they just never match, and they still apply to older esphome versions. No change needed in this PR.
PR description: it would be worth saying in one line that the PR now also replaces the Zigbee assertions with report instead of only removing them.
✅ Resolved since last review (1)
Previously-flagged issues verified fixed
script/check_catalog.py:274 Comment still names the removed zigbee_sensor field
Checklist
No hardcoded secrets
Change matches PR description
Comments/docs consistent with code
Generated catalog files not hand-edited
Zigbee gate coverage preserved in live-manifest test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this implement/fix?
Replace obsolete zigbee_* ids in gate test case and script/check_catalog.py with
report.esphome/esphome/pull/22482 removes the zigbee ids from the schema and this test fails.
Related issue or feature (if applicable):
Types of changes
bugfixnew-featureenhancementbreaking-changerefactordocsmaintenancecidependenciesFrontend coordination
Checklist
ruff,codespell, yaml/json/python checks).tests/where applicable.components.index.json/definitions/components/*.jsonhave not been hand-edited (regenerate viascript/sync_components.pyif a sync is needed).docs/ARCHITECTURE.mdand/ordocs/API.md.