Support blocking trusted network from new ip (#44630)

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
Joakim Plate 2021-01-28 12:06:20 +01:00 committed by GitHub
parent e4a7692610
commit 38d2cacf7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 381 additions and 131 deletions

View file

@ -131,7 +131,7 @@ async def test_login(hass):
result["flow_id"], {"pin": "123456"}
)
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
assert result["data"].id == "mock-user"
assert result["data"].id == "mock-id"
async def test_setup_flow(hass):

View file

@ -229,7 +229,7 @@ async def test_login_flow_validates_mfa(hass):
result["flow_id"], {"code": MOCK_CODE}
)
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
assert result["data"].id == "mock-user"
assert result["data"].id == "mock-id"
async def test_setup_user_notify_service(hass):

View file

@ -127,7 +127,7 @@ async def test_login_flow_validates_mfa(hass):
result["flow_id"], {"code": MOCK_CODE}
)
assert result["type"] == data_entry_flow.RESULT_TYPE_CREATE_ENTRY
assert result["data"].id == "mock-user"
assert result["data"].id == "mock-id"
async def test_race_condition_in_data_loading(hass):