diff --git a/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp b/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp index fee26cc897..e0370328f2 100644 --- a/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp +++ b/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp @@ -61,6 +61,7 @@ static constexpr size_t FLUSH_BATCH_SIZE = 16; // 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; }