mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
HomematicIP_Cloud fix test (#17376)
* fix-homematicip_cloud-flow_config * remove-homematicip_cloud-flow_config-stale-print * Fix redundant backslash between brackets
This commit is contained in:
parent
caa48fab13
commit
2fce79eccf
@ -61,7 +61,6 @@ class HomematicipAuth:
|
|||||||
from homematicip.base.base_connection import HmipConnectionError
|
from homematicip.base.base_connection import HmipConnectionError
|
||||||
|
|
||||||
auth = AsyncAuth(hass.loop, async_get_clientsession(hass))
|
auth = AsyncAuth(hass.loop, async_get_clientsession(hass))
|
||||||
print(auth)
|
|
||||||
try:
|
try:
|
||||||
await auth.init(hapid)
|
await auth.init(hapid)
|
||||||
if pin:
|
if pin:
|
||||||
|
@ -21,6 +21,8 @@ async def test_flow_works(hass):
|
|||||||
with patch.object(hap, 'get_auth', return_value=mock_coro()), \
|
with patch.object(hap, 'get_auth', return_value=mock_coro()), \
|
||||||
patch.object(hmipc.HomematicipAuth, 'async_checkbutton',
|
patch.object(hmipc.HomematicipAuth, 'async_checkbutton',
|
||||||
return_value=mock_coro(True)), \
|
return_value=mock_coro(True)), \
|
||||||
|
patch.object(hmipc.HomematicipAuth, 'async_setup',
|
||||||
|
return_value=mock_coro(True)), \
|
||||||
patch.object(hmipc.HomematicipAuth, 'async_register',
|
patch.object(hmipc.HomematicipAuth, 'async_register',
|
||||||
return_value=mock_coro(True)):
|
return_value=mock_coro(True)):
|
||||||
hap.authtoken = 'ABC'
|
hap.authtoken = 'ABC'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user