add common strings (#41350)
This commit is contained in:
parent
61d9067a49
commit
6ab9d0bc31
3 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -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}",
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue