Missing async_migrate_entry prevents future config entry schema changes #8
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/yeedi_awmbuild#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Low
File:
custom_components/yeedi/__init__.pyIssue: The config entry VERSION is set to 1 in
config_flow.py, but there is noasync_migrate_entryfunction in__init__.py. If the config entry schema needs to change in a future version (e.g., adding new fields, changing token storage format), there is no migration path. Users would have to remove and re-add the integration, losing their configuration.Fix: Add a migration function:
Implemented: added async_migrate_entry function with version 1 placeholder. Pushed to main.