-
-
Notifications
You must be signed in to change notification settings - Fork 10
[blog] Add breaking change blog post for Event entity memory optimizations #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for esphome-dev-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
We should probably do the const char * change now to avoid two different breaking changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces comprehensive documentation for memory optimization changes to ESPHome's Event entity class in version 2025.11.0. The changes explain how event type storage has been optimized from std::set<std::string> to FixedVector<const char *> to reduce heap usage and store strings in flash memory.
Key Changes
- Documents the transition from
std::set<std::string>toFixedVector<const char *>for event type storage - Provides detailed migration guide for external component developers
- Explains memory and performance benefits of the optimizations
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| ## Timeline | ||
|
|
||
| - **ESPHome 2025.11.0 (November 2025):** |
Copilot
AI
Nov 7, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The date 'November 2025' appears to be incorrect. The file is named '2025-11-07-event-entity-optimizations.md' which indicates November 7, 2025, but the current date context suggests this may be a future date that hasn't occurred yet. Please verify this is the intended release date.
Summary
Adds blog post documenting breaking changes in Event entity class across two PRs in 2025.11.0 release.
Two PRs in same release:
Combined breaking changes (for external components):
std::set<std::string>toFixedVector<const char *>const std::string &toconst char *strcmp()instead of==operatorconst FixedVector<const char *> &instead ofstd::set<std::string>last_event_typefield now private - useget_last_event_type()getter (ensures pointer lifetime safety)Blog post includes: