Fix wrong error message on adding a new HomematicIP Cloud AP (#39599)
This commit is contained in:
parent
aecd74c6af
commit
f2f68859cc
5 changed files with 8 additions and 7 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue