HomematicIP_Cloud fix test (#17376)

* fix-homematicip_cloud-flow_config

* remove-homematicip_cloud-flow_config-stale-print

* Fix redundant backslash between brackets
pull/18087/head
Mattias Welponer 2018-11-01 12:21:59 +01:00 committed by Pascal Vizeli
parent caa48fab13
commit 2fce79eccf
2 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,6 @@ class HomematicipAuth:
from homematicip.base.base_connection import HmipConnectionError
auth = AsyncAuth(hass.loop, async_get_clientsession(hass))
print(auth)
try:
await auth.init(hapid)
if pin:

View File

@ -21,6 +21,8 @@ async def test_flow_works(hass):
with patch.object(hap, 'get_auth', return_value=mock_coro()), \
patch.object(hmipc.HomematicipAuth, 'async_checkbutton',
return_value=mock_coro(True)), \
patch.object(hmipc.HomematicipAuth, 'async_setup',
return_value=mock_coro(True)), \
patch.object(hmipc.HomematicipAuth, 'async_register',
return_value=mock_coro(True)):
hap.authtoken = 'ABC'