Reauth form does not pre-fill existing username/region/base_url #4
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#4
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 (UX)
File:
custom_components/yeedi/config_flow.py, lines 96-104Issue: The
async_step_reauth_confirmmethod shows a blank form on reauthentication, requiring the user to re-enter their username, region, and base URL from scratch. Since the config entry already has this data, the form should pre-fill those fields for a smoother UX.Fix: Pass
default=entry.data.get(...)values to the schema, similar to how the options flow does it. Also consider showing the existing username as a read-only field since it cannot be changed.Fixed in commit. Closing.