The classical Poincaré lemma says that every closed differential form on a contractible manifold is exact. In 2012, Voronov proved a version of the Poincaré lemma for differential forms taking values in a differential graded Lie algebra (dgla), and asks whether an analogous result holds when the dgla is replaced by an \(L\)-infinity algebra. We will see how to use some theory of Maurer—Cartan moduli spaces and model categories to prove Voronov's result, and to generalize it to \(L\)-infinity algebras.