Update met config string (#41048)
* update config string met * typo * config strings
This commit is contained in:
parent
7b7bdd9d8f
commit
4a1173c3de
3 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ class MetFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
return self.async_create_entry(
|
||||
title=user_input[CONF_NAME], data=user_input
|
||||
)
|
||||
self._errors[CONF_NAME] = "name_exists"
|
||||
self._errors[CONF_NAME] = "already_configured"
|
||||
|
||||
return await self._show_config_form(
|
||||
name=HOME_LOCATION_NAME,
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"error": { "name_exists": "Location already exists" }
|
||||
"error": { "already_configured": "[%key:common::config_flow::abort::already_configured_service%]" }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ async def test_flow_entry_already_exists(hass):
|
|||
)
|
||||
|
||||
assert result["type"] == "form"
|
||||
assert result["errors"]["name"] == "name_exists"
|
||||
assert result["errors"]["name"] == "already_configured"
|
||||
|
||||
|
||||
async def test_onboarding_step(hass):
|
||||
|
|
Loading…
Add table
Reference in a new issue