diff --git a/esphome/core/application.h b/esphome/core/application.h index 347cbca304..160a7b35ca 100644 --- a/esphome/core/application.h +++ b/esphome/core/application.h @@ -278,6 +278,12 @@ class Application { #ifdef USE_UPDATE void reserve_update(size_t count) { this->updates_.reserve(count); } #endif +#ifdef USE_AREAS + void reserve_area(size_t count) { this->areas_.reserve(count); } +#endif +#ifdef USE_DEVICES + void reserve_device(size_t count) { this->devices_.reserve(count); } +#endif /// Register the component in this Application instance. template C *register_component(C *c) {