Add return code to integration application credentials in config flow (#71986)
* Add return code to integration application credentials in config flow * Update google tests to use new return code * Update spotify test for no auth configured * Add translation for oauth2_missing_credentials * Add new return code to yolink * Update homeassistant/strings.json Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Franck Nijhof <frenck@frenck.nl> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
23cb5cfd3f
commit
26ee289be3
6 changed files with 20 additions and 5 deletions
|
@ -25,7 +25,7 @@ async def test_abort_if_no_configuration(hass):
|
|||
DOMAIN, context={"source": config_entries.SOURCE_USER}
|
||||
)
|
||||
assert result["type"] == data_entry_flow.RESULT_TYPE_ABORT
|
||||
assert result["reason"] == "missing_configuration"
|
||||
assert result["reason"] == "missing_credentials"
|
||||
|
||||
|
||||
async def test_abort_if_existing_entry(hass: HomeAssistant):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue