Skip to content

Sync entity icon and device class progmem options with esphome - #1950

Merged
J. Nick Koston (bdraco) merged 20 commits into
mainfrom
entity-icon-dc-progmem-sync
Oct 21, 2026
Merged

J. Nick Koston (bdraco) merged 20 commits into
mainfrom
entity-icon-dc-progmem-sync

Conversation

@bdraco

Copy link
Copy Markdown
Member

What does this implement/fix?

Syncs the entity list icon and device_class fields with esphome/esphome#21111: each one is marked (progmem), as the firmware now reads them straight from flash on ESP8266. Stacks on #1932. Only options change, so the wire format is the same.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Code quality improvements to existing code or addition of tests
  • Other

Related issue or feature (if applicable):

  • fixes

Pull request in esphome (if applicable):

Checklist:

  • The code change is tested and works locally.
  • If api.proto was modified, a linked pull request has been made to esphome with the same changes.
  • Tests have been added to verify that the new code works (under tests/ folder).

@codecov

codecov Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e19fb6d) to head (4a18ccc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1950   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           30        30           
  Lines         5176      5176           
=========================================
  Hits          5176      5176           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@codspeed

codspeed Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 56 untouched benchmarks


Comparing entity-icon-dc-progmem-sync (4a18ccc) with main (e19fb6d)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (6d47c34) during the generation of this report, so e19fb6d was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

Base automatically changed from entity-name-progmem-sync to main October 21, 2026 18:13
Copilot AI balanced review requested due to automatic review settings October 21, 2026 18:15
@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 14 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 25232064-5571-4273-a897-3d6558e9611f
📥 Commits

Reviewing files that changed from the base of the PR and between 290c691 and 4a18ccc.

📒 Files selected for processing: 2
  • aioesphomeapi/api.proto
  • aioesphomeapi/api_pb2.py

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 28e29602-4a61-4766-b562-7c0a6fb1dc0e
📥 Commits

Reviewing files that changed from the base of the PR and between 1ba23f2 and 290c691.

📒 Files selected for processing: 2
  • aioesphomeapi/api.proto
  • aioesphomeapi/api_pb2.py

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

Walkthrough

Entity-list response string fields now include the progmem = true option. Field names, types, numbers, and protocol structure remain unchanged.

Changes

Entity-list response strings

Layer / File(s) Summary
Entity response string options
aioesphomeapi/api.proto
Affected entity-list responses add progmem = true to name, icon, and applicable device_class fields. Field types and numbers remain unchanged.

Priority: ⚪ Pending latest changes

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Refactor

Suggested reviewers: kbx81

Merge Risk: ⚪ Minimal · up to 290c6

No merge-blocking correctness, compatibility, security, or availability risks were identified.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the main change: synchronizing entity icon and device class progmem options with ESPHome.
Description check Passed The description accurately explains the progmem option changes, their ESPHome reference, unchanged wire format, testing status, and lack of added tests.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

🔵 Needs a closer look

The upstream firmware PR remains draft and unmerged, so merge ordering needs human confirmation.

No open issues 🎉

What changed in this PR

Syncs the client protocol’s entity metadata options with esphome/esphome#21111, building on the name-field changes in #1932.

Changes:

  • Adds (progmem) = true to 36 entity icon and device_class fields.
  • Preserves field numbers, types, and wire compatibility.
File Description
aioesphomeapi/​api.proto Aligns entity metadata options with firmware flash storage.

Review effort: Balanced

…m-sync

# Conflicts:
#	aioesphomeapi/api_pb2.py
@bdraco
J. Nick Koston (bdraco) merged commit 430c8a7 into main Oct 21, 2026
22 checks passed
@bdraco
J. Nick Koston (bdraco) deleted the entity-icon-dc-progmem-sync branch October 21, 2026 21:16
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants