diff --git a/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp b/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp index 0b25b64e3f..98050b552f 100644 --- a/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp +++ b/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp @@ -56,6 +56,7 @@ static constexpr size_t FLUSH_BATCH_SIZE = 8; // Global batch buffer to avoid guard variable (saves 8 bytes) // This is initialized at program startup before any threads +// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) static std::vector batch_buffer; static std::vector &get_batch_buffer() { return batch_buffer; }