The past tense of have an affinity with is had an affinity with.
The third-person singular simple present indicative form of have an affinity with is has an affinity with.
The present participle of have an affinity with is having an affinity with.
The past participle of have an affinity with is had an affinity with.