I've seen it stated in several sources and lecture notes for Abstract Harmonic Analysis that for a locally compact group $G$, $L^{1}(G)$ is unital if and only if $G$ is discrete.
What about the locally compact group $\mathbb{T} = \{\lambda\in\mathbb{C}: |\lambda| = 1\}$, which is not discrete because the arclength measure of a point on the unit circle is $0$.
But since it is compact, the constant function $1\in L^{1}(G)$.