1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Review comments

This commit is contained in:
Erik
2018-12-04 10:55:30 +01:00
parent b9ad19acbf
commit 21197fb968
2 changed files with 6 additions and 5 deletions

View File

@@ -293,7 +293,7 @@ class TestSensorMQTT(unittest.TestCase):
state = self.hass.states.get('binary_sensor.test')
assert state.attributes.get('val') is None
mock_logger.debug.assert_called_with(
mock_logger.warning.assert_called_with(
'JSON result was not a dictionary')
@patch('homeassistant.components.mqtt._LOGGER')
@@ -314,7 +314,7 @@ class TestSensorMQTT(unittest.TestCase):
state = self.hass.states.get('binary_sensor.test')
assert state.attributes.get('val') is None
mock_logger.debug.assert_called_with(
mock_logger.warning.assert_called_with(
'Erroneous JSON: %s', 'This is not JSON')