From 2fce79eccff0b1a83d5be795c2d04db4b4a1dae4 Mon Sep 17 00:00:00 2001 From: Mattias Welponer Date: Thu, 1 Nov 2018 12:21:59 +0100 Subject: [PATCH] HomematicIP_Cloud fix test (#17376) * fix-homematicip_cloud-flow_config * remove-homematicip_cloud-flow_config-stale-print * Fix redundant backslash between brackets --- homeassistant/components/homematicip_cloud/hap.py | 1 - tests/components/homematicip_cloud/test_config_flow.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/homematicip_cloud/hap.py b/homeassistant/components/homematicip_cloud/hap.py index d79e7c1ee14..b4605aa37f0 100644 --- a/homeassistant/components/homematicip_cloud/hap.py +++ b/homeassistant/components/homematicip_cloud/hap.py @@ -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: diff --git a/tests/components/homematicip_cloud/test_config_flow.py b/tests/components/homematicip_cloud/test_config_flow.py index 1c2e54a1a5d..1c5d6e31190 100644 --- a/tests/components/homematicip_cloud/test_config_flow.py +++ b/tests/components/homematicip_cloud/test_config_flow.py @@ -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'