mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Use common strings in withings config flow (#41770)
This commit is contained in:
parent
4cc6eee1ac
commit
f5248b5562
@ -70,7 +70,7 @@ class WithingsFlowHandler(
|
|||||||
self._current_data = {}
|
self._current_data = {}
|
||||||
return await self.async_step_finish(new_data)
|
return await self.async_step_finish(new_data)
|
||||||
|
|
||||||
errors["base"] = "already_configured_account"
|
errors["base"] = "already_configured"
|
||||||
|
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id="profile",
|
step_id="profile",
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"already_configured_account": "[%key:common::config_flow::abort::already_configured_account%]"
|
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]"
|
||||||
},
|
},
|
||||||
"abort": {
|
"abort": {
|
||||||
"authorize_url_timeout": "[%key:common::config_flow::abort::oauth2_authorize_url_timeout%]",
|
"authorize_url_timeout": "[%key:common::config_flow::abort::oauth2_authorize_url_timeout%]",
|
||||||
|
@ -30,7 +30,7 @@ async def test_config_non_unique_profile(hass: HomeAssistant) -> None:
|
|||||||
)
|
)
|
||||||
|
|
||||||
assert result
|
assert result
|
||||||
assert result["errors"]["base"] == "already_configured_account"
|
assert result["errors"]["base"] == "already_configured"
|
||||||
|
|
||||||
|
|
||||||
async def test_config_reauth_profile(
|
async def test_config_reauth_profile(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user