Add title to reauthenticate integration issue (#111275)
* Add title to reauthenticate integration issue * Fix translation placeholder in test * Update translation placeholders in test_init.py * Update integration reauthentication message * Update string
This commit is contained in:
parent
0947bdbd20
commit
9f77e275e9
4 changed files with 5 additions and 4 deletions
|
@ -891,6 +891,7 @@ class ConfigEntry:
|
||||||
issue_domain=self.domain,
|
issue_domain=self.domain,
|
||||||
severity=ir.IssueSeverity.ERROR,
|
severity=ir.IssueSeverity.ERROR,
|
||||||
translation_key="config_entry_reauth",
|
translation_key="config_entry_reauth",
|
||||||
|
translation_placeholders={"name": self.title},
|
||||||
)
|
)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
"config_flow": {
|
"config_flow": {
|
||||||
"title": {
|
"title": {
|
||||||
"oauth2_pick_implementation": "Pick authentication method",
|
"oauth2_pick_implementation": "Pick authentication method",
|
||||||
"reauth": "Reauthenticate integration",
|
"reauth": "Authentication expired for {name}",
|
||||||
"via_hassio_addon": "{name} via Home Assistant add-on"
|
"via_hassio_addon": "{name} via Home Assistant add-on"
|
||||||
},
|
},
|
||||||
"description": {
|
"description": {
|
||||||
|
|
|
@ -205,7 +205,7 @@ async def test_issues_created(
|
||||||
"learn_more_url": None,
|
"learn_more_url": None,
|
||||||
"severity": "error",
|
"severity": "error",
|
||||||
"translation_key": "config_entry_reauth",
|
"translation_key": "config_entry_reauth",
|
||||||
"translation_placeholders": None,
|
"translation_placeholders": {"name": "Kitchen Sink"},
|
||||||
"ignored": False,
|
"ignored": False,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -322,7 +322,7 @@ async def test_issues_created(
|
||||||
"learn_more_url": None,
|
"learn_more_url": None,
|
||||||
"severity": "error",
|
"severity": "error",
|
||||||
"translation_key": "config_entry_reauth",
|
"translation_key": "config_entry_reauth",
|
||||||
"translation_placeholders": None,
|
"translation_placeholders": {"name": "Kitchen Sink"},
|
||||||
"ignored": False,
|
"ignored": False,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
@ -1044,7 +1044,7 @@ async def test_reauth_issue(hass: HomeAssistant) -> None:
|
||||||
learn_more_url=None,
|
learn_more_url=None,
|
||||||
severity=ir.IssueSeverity.ERROR,
|
severity=ir.IssueSeverity.ERROR,
|
||||||
translation_key="config_entry_reauth",
|
translation_key="config_entry_reauth",
|
||||||
translation_placeholders=None,
|
translation_placeholders={"name": "test_title"},
|
||||||
)
|
)
|
||||||
|
|
||||||
result = await hass.config_entries.flow.async_configure(issue.data["flow_id"], {})
|
result = await hass.config_entries.flow.async_configure(issue.data["flow_id"], {})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue