diff --git a/esphome/core/config.py b/esphome/core/config.py index a2b8746a62..215432835a 100644 --- a/esphome/core/config.py +++ b/esphome/core/config.py @@ -513,7 +513,7 @@ async def to_code(config: ConfigType) -> None: cg.add_global(cg.RawExpression("using std::max")) # Construct App via placement new — see application.cpp for storage details - cg.add_global(cg.RawExpression("#include ")) + cg.add_global(cg.RawStatement("#include ")) cg.add(cg.RawExpression("new (&App) Application()")) cg.add( cg.App.pre_setup(