-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create issues for reauth flows #109105
Create issues for reauth flows #109105
Conversation
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
ir.async_create_issue( | ||
hass, | ||
HA_DOMAIN, | ||
issue_id, | ||
data={"flow_id": result["flow_id"]}, | ||
is_fixable=False, | ||
issue_domain=self.domain, | ||
severity=ir.IssueSeverity.ERROR, | ||
translation_key="config_entry_reauth", | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My idea is that frontend knows that an issue in the homeassistant
domain with translation key config_entry_reauth
has a linked reauth flow.
"title": "[%key:common::config_flow::title::reauth%]", | ||
"description": "Reauthentication is needed" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These will need to be adjusted or removed when we know how frontend will display these issues.
31992c8
to
6056faa
Compare
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok.
Can be merged when there's a linked and approved frontend PR. |
Proposed change
Create repair issues for reauth flows
Rationale:
By showing reauth issues also in the repairs center, they should be easier for users to find
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: