diff --git a/esphome/core/helpers.h b/esphome/core/helpers.h index 52a0746057..28f242b8b2 100644 --- a/esphome/core/helpers.h +++ b/esphome/core/helpers.h @@ -225,6 +225,9 @@ template class FixedVector { other.reset_(); } + // Allow conversion to std::vector + operator std::vector() const { return {data_, data_ + size_}; } + FixedVector &operator=(FixedVector &&other) noexcept { if (this != &other) { // Delete our current data