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

This commit is contained in:
SukramJ authored and GitHub committed 2020-09-03 09:52:51 +02:00
1 parent aecd74c6af
commit f2f68859cc
5 files changed
+8 -7

No files matched your search

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