1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Adjust async_step_reauth in blink (#74167)

This commit is contained in:
epenet
2022-06-29 11:54:21 +02:00
committed by GitHub
parent 2fce301b34
commit 078c5cea86
2 changed files with 8 additions and 3 deletions

View File

@@ -246,7 +246,9 @@ async def test_form_unknown_error(hass):
async def test_reauth_shows_user_step(hass):
"""Test reauth shows the user form."""
result = await hass.config_entries.flow.async_init(
DOMAIN, context={"source": config_entries.SOURCE_REAUTH}
DOMAIN,
context={"source": config_entries.SOURCE_REAUTH},
data={"username": "blink@example.com", "password": "invalid_password"},
)
assert result["type"] == data_entry_flow.RESULT_TYPE_FORM
assert result["step_id"] == "user"