Commit 35fd7a0
committed
chore(config_flow): use DOMAIN constant + clear pending cred after commit
Two small cleanups in async_oauth_create_entry / _commit_pending_credential:
- Replace the two remaining "u_tec" string literals with the DOMAIN
constant for consistency with the rest of the file (and with
async_migrate_entry, which already uses DOMAIN throughout).
- Clear self._pending_credential after the successful commit. Not a
bug today (the flow doesn't loop back), but prevents a footgun if
anyone later adds a retry path that would re-commit the same cred.1 parent dfd494b commit 35fd7a0
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
270 | | - | |
| 271 | + | |
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
| |||
0 commit comments