Skip to content

Commit

Permalink
Merge 4be36a4 into 2e0cd14
Browse files Browse the repository at this point in the history
  • Loading branch information
magenbrot committed Sep 12, 2018
2 parents 2e0cd14 + 4be36a4 commit b7dd797
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/io_connectionstate_test.py
Expand Up @@ -62,7 +62,7 @@ def test_connectionstate(self):
# Correct Response KNX/IP-Frame:
res_knxipframe = KNXIPFrame(xknx)
res_knxipframe.init(KNXIPServiceType.CONNECTIONSTATE_RESPONSE)
with patch('logging.Logger.info') as mock_info:
with patch('logging.Logger.debug') as mock_debug:
connectionstate.response_rec_callback(res_knxipframe, None)
mock_info.assert_called_with('Success: received correct answer from KNX bus: %s', ErrorCode.E_NO_ERROR)
mock_debug.assert_called_with('Success: received correct answer from KNX bus: %s', ErrorCode.E_NO_ERROR)
self.assertTrue(connectionstate.success)
2 changes: 1 addition & 1 deletion xknx/io/request_response.py
Expand Up @@ -58,7 +58,7 @@ def response_rec_callback(self, knxipframe, _):

def on_success_hook(self, knxipframe):
"""Do something after having received a valid answer. May be overwritten in derived class."""
self.xknx.logger.info('Success: received correct answer from KNX bus: %s', knxipframe.body.status_code)
self.xknx.logger.debug('Success: received correct answer from KNX bus: %s', knxipframe.body.status_code)

def on_error_hook(self, knxipframe):
"""Do somthing after not having received valid answer within given time. May be overwritten in derived class."""
Expand Down

0 comments on commit b7dd797

Please sign in to comment.