From 1f99d18982eabcb6741366fa8b0719e087ce5fca Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 21 Jun 2025 17:34:08 +0200 Subject: [PATCH] reverse space in vectors --- esphome/core/application.h | 6 ++++++ 1 file changed, 6 insertions(+) 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) {