migrate from get_object_id_hash() to make_entity_preference()#107
Merged
Conversation
Replace deprecated get_object_id_hash() API with the new make_entity_preference<T>() helper method introduced in ESPHome PR #13505. This change: - Prevents hash collisions when entity names sanitize to the same string - Enables automatic preference migration for future hash algorithm updates - Uses device-aware hashing to avoid collisions across devices Updated components: - secplus_gdo switch, select, and number entities Updated minimum ESPHome version to 2026.2.0 for ESP32-S3 Fixes #106 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
heythisisnate
force-pushed
the
make-entity-preference
branch
from
February 20, 2026 16:32
ae7b762 to
d918a76
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Replace deprecated get_object_id_hash() API with the new make_entity_preference() helper method introduced in #13505. This change:
Updated components:
Updated minimum ESPHome version to 2026.2.0 for all platforms (ESP32, ESP32-S3, ESP8266).
Fixes #106