[step:Use metric compatibility to determine the local matrix]Define the Hermitian metric matrix
\begin{align*}
H:U &\to \operatorname{Herm}^+_r \\
x &\mapsto (h_x(e_i(x),e_j(x)))_{i,j}.
\end{align*}
For smooth coefficient maps $a,b:U\to\mathbb{C}^r$, the metric is
\begin{align*}
h(ea,eb)=a^*Hb,
\end{align*}
where $a^*$ denotes the conjugate transpose of the column vector $a$.
Assume $D^{0,1}=\bar{\partial}_E$ and $D$ is compatible with $h$. By the previous step, $A$ has type $(1,0)$. Apply metric compatibility to constant coefficient sections $s=ea$ and $t=eb$, where $a,b\in\mathbb{C}^r$ are constant vectors. Since $da=db=0$,
\begin{align*}
D(ea)=e(Aa), \qquad D(eb)=e(Ab).
\end{align*}
Metric compatibility gives
\begin{align*}
d(a^*Hb)=h(eAa,eb)+h(ea,eAb).
\end{align*}
Using conjugate-linearity in the first argument and linearity in the second,
\begin{align*}
h(eAa,eb)=a^*A^*Hb, \qquad h(ea,eAb)=a^*HAb.
\end{align*}
Hence
\begin{align*}
a^*(dH)b=a^*(A^*H+HA)b
\end{align*}
for all constant vectors $a,b\in\mathbb{C}^r$. Therefore
\begin{align*}
dH=A^*H+HA.
\end{align*}
Taking the $(1,0)$-part of both sides, and using that $A$ has type $(1,0)$ while $A^*$ has type $(0,1)$, gives
\begin{align*}
\partial H=HA.
\end{align*}
Because $H(x)$ is positive definite for every $x\in U$, it is invertible, so
\begin{align*}
A=H^{-1}\partial H.
\end{align*}
Thus any connection satisfying the two required conditions has this local matrix in the holomorphic frame $e$.[/step]