diff --git a/esphome/core/helpers.h b/esphome/core/helpers.h index d3852c3969..39d39c1c94 100644 --- a/esphome/core/helpers.h +++ b/esphome/core/helpers.h @@ -130,7 +130,7 @@ template class StaticVector { size_t size() const { return count_; } bool empty() const { return count_ == 0; } - // Direct access to increment size for efficient initialization + // Direct access to size counter for efficient in-place construction size_t &count() { return count_; } T &operator[](size_t i) { return data_[i]; }