Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions homeassistant/components/homematicip_cloud/hap.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ async def async_checkbutton(self):
from homematicip.base.base_connection import HmipConnectionError

try:
await self.auth.isRequestAcknowledged()
return True
return await self.auth.isRequestAcknowledged()
except HmipConnectionError:
return False

Expand Down
2 changes: 1 addition & 1 deletion tests/components/homematicip_cloud/test_hap.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def test_auth_auth_check_and_register(hass):
hap = hmipc.HomematicipAuth(hass, config)
hap.auth = Mock()
with patch.object(hap.auth, 'isRequestAcknowledged',
return_value=mock_coro()), \
return_value=mock_coro(True)), \
patch.object(hap.auth, 'requestAuthToken',
return_value=mock_coro('ABC')), \
patch.object(hap.auth, 'confirmAuthToken',
Expand Down