@SillyGoose no, the two are unrelated since the equivalence between connection forms and parallel transport is general while the thing with the average is due to the
mean value property of harmonic functions and the potential being harmonic in this case