Fix wrong error message on adding a new HomematicIP Cloud AP (#39599)

This commit is contained in:
SukramJ 2020-09-03 09:52:51 +02:00 committed by GitHub
parent aecd74c6af
commit f2f68859cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 7 deletions

View file

@ -175,9 +175,7 @@ async def test_auth_create_exception(hass, simple_mock_auth):
"homeassistant.components.homematicip_cloud.hap.AsyncAuth",
return_value=simple_mock_auth,
):
assert await hmip_auth.async_setup()
await hass.async_block_till_done()
assert not hmip_auth.auth
assert not await hmip_auth.async_setup()
with patch(
"homeassistant.components.homematicip_cloud.hap.AsyncAuth",