♻️ Tidy config flow: drop unused hass, lambda, dedupe error mapping #51
No reviewers
Labels
No labels
v1.0 · bloquant
v1.0 · majeur
v1.0 · mineur
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mat/homeassistant-comwatt!51
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/config-flow-tidy"
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?
Pure, behavior-preserving refactor of
config_flow.py:hassparameter fromvalidate_input(+ its now-unusedHomeAssistantimport);asyncio.to_thread;errorsmapping from both flow steps into a shared_validatehelper, with alog_contextkwarg that preserves the reauth-specific log message.Independent of the other PRs.