'Test invalid sensor.'

def test_invalid_sensor_does_not_create(self):

    with assert_setup_component(0):
        assert setup.setup_component(self.hass, 'binary_sensor', {'binary_sensor': {'platform': 'template', 'sensors': {'test_trend_sensor': {'not_entity_id': 'sensor.test_state'}}}})
    assert (self.hass.states.all() == [])
