Review comments

This commit is contained in:
Erik committed 2018-12-04 19:56:34 +01:00
1 parent b9ad19acbf
commit 21197fb968
2 files changed
+6 -5

No files matched your search

+2 -2
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')