add common strings (#41350)

This commit is contained in:
scheric 2020-10-06 18:50:32 +02:00 committed by GitHub
parent 61d9067a49
commit 6ab9d0bc31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -37,7 +37,7 @@ class ArcamFmjFlowHandler(config_entries.ConfigFlow):
try:
await client.start()
except ConnectionFailed:
return self.async_abort(reason="unable_to_connect")
return self.async_abort(reason="cannot_connect")
finally:
await client.stop()

View file

@ -1,9 +1,9 @@
{
"config": {
"abort": {
"already_configured": "Device was already setup.",
"already_configured": "[%key:common::config_flow::abort::already_configured_device%]",
"already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]",
"unable_to_connect": "Unable to connect to device."
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]"
},
"error": {},
"flow_title": "Arcam FMJ on {host}",

View file

@ -99,7 +99,7 @@ async def test_ssdp_unable_to_connect(hass, dummy_client):
result = await hass.config_entries.flow.async_configure(result["flow_id"], {})
assert result["type"] == data_entry_flow.RESULT_TYPE_ABORT
assert result["reason"] == "unable_to_connect"
assert result["reason"] == "cannot_connect"
async def test_ssdp_update(hass):