mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Fix translation string in spotify (#128440)
* Fix translation string in spotify * Remove ignore_translations from spotify config_flow test * Fix formatting in config flow test for spotify
This commit is contained in:
parent
fa8284d360
commit
260d919f80
@ -19,7 +19,8 @@
|
|||||||
"oauth_timeout": "[%key:common::config_flow::abort::oauth2_timeout%]",
|
"oauth_timeout": "[%key:common::config_flow::abort::oauth2_timeout%]",
|
||||||
"oauth_unauthorized": "[%key:common::config_flow::abort::oauth2_unauthorized%]",
|
"oauth_unauthorized": "[%key:common::config_flow::abort::oauth2_unauthorized%]",
|
||||||
"oauth_failed": "[%key:common::config_flow::abort::oauth2_failed%]",
|
"oauth_failed": "[%key:common::config_flow::abort::oauth2_failed%]",
|
||||||
"connection_error": "Could not fetch account information. Is the user registered in the Spotify Developer Dashboard?"
|
"connection_error": "Could not fetch account information. Is the user registered in the Spotify Developer Dashboard?",
|
||||||
|
"missing_credentials": "[%key:common::config_flow::abort::oauth2_missing_credentials%]"
|
||||||
},
|
},
|
||||||
"create_entry": {
|
"create_entry": {
|
||||||
"default": "Successfully authenticated with Spotify."
|
"default": "Successfully authenticated with Spotify."
|
||||||
|
@ -29,10 +29,6 @@ BLANK_ZEROCONF_INFO = zeroconf.ZeroconfServiceInfo(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize( # Remove when translations fixed
|
|
||||||
"ignore_translations",
|
|
||||||
["component.spotify.config.abort.missing_credentials"],
|
|
||||||
)
|
|
||||||
async def test_abort_if_no_configuration(hass: HomeAssistant) -> None:
|
async def test_abort_if_no_configuration(hass: HomeAssistant) -> None:
|
||||||
"""Check flow aborts when no configuration is present."""
|
"""Check flow aborts when no configuration is present."""
|
||||||
result = await hass.config_entries.flow.async_init(
|
result = await hass.config_entries.flow.async_init(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user