'Test receiving a non JSON message.'

def test_non_json_message(self):

    dev_id = 'zanzito'
    topic = 'location/zanzito'
    location = 'home'
    assert setup_component(self.hass, device_tracker.DOMAIN, {device_tracker.DOMAIN: {CONF_PLATFORM: 'mqtt_json', 'devices': {dev_id: topic}}})
    with self.assertLogs(level='ERROR') as test_handle:
        fire_mqtt_message(self.hass, topic, location)
        self.hass.block_till_done()
        self.assertIn('ERROR:homeassistant.components.device_tracker.mqtt_json:Error    parsing    JSON    payload:    home', test_handle.output[0])
