mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 12:15:08 +02:00
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:
@@ -891,6 +891,7 @@ class ConfigEntry:
|
||||
issue_domain=self.domain,
|
||||
severity=ir.IssueSeverity.ERROR,
|
||||
translation_key="config_entry_reauth",
|
||||
translation_placeholders={"name": self.title},
|
||||
)
|
||||
|
||||
@callback
|
||||
|
@@ -68,7 +68,7 @@
|
||||
"config_flow": {
|
||||
"title": {
|
||||
"oauth2_pick_implementation": "Pick authentication method",
|
||||
"reauth": "Reauthenticate integration",
|
||||
"reauth": "Authentication expired for {name}",
|
||||
"via_hassio_addon": "{name} via Home Assistant add-on"
|
||||
},
|
||||
"description": {
|
||||
|
@@ -205,7 +205,7 @@ async def test_issues_created(
|
||||
"learn_more_url": None,
|
||||
"severity": "error",
|
||||
"translation_key": "config_entry_reauth",
|
||||
"translation_placeholders": None,
|
||||
"translation_placeholders": {"name": "Kitchen Sink"},
|
||||
"ignored": False,
|
||||
},
|
||||
]
|
||||
@@ -322,7 +322,7 @@ async def test_issues_created(
|
||||
"learn_more_url": None,
|
||||
"severity": "error",
|
||||
"translation_key": "config_entry_reauth",
|
||||
"translation_placeholders": None,
|
||||
"translation_placeholders": {"name": "Kitchen Sink"},
|
||||
"ignored": False,
|
||||
},
|
||||
]
|
||||
|
@@ -1044,7 +1044,7 @@ async def test_reauth_issue(hass: HomeAssistant) -> None:
|
||||
learn_more_url=None,
|
||||
severity=ir.IssueSeverity.ERROR,
|
||||
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"], {})
|
||||
|
Reference in New Issue
Block a user