Update met config string (#41048)

* update config string met

* typo

* config strings
This commit is contained in:
Daniel Hjelseth Høyer 2020-10-03 15:18:05 +02:00 committed by GitHub
parent 7b7bdd9d8f
commit 4a1173c3de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -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,

View file

@ -12,6 +12,6 @@
}
}
},
"error": { "name_exists": "Location already exists" }
"error": { "already_configured": "[%key:common::config_flow::abort::already_configured_service%]" }
}
}

View file

@ -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):