diff --git a/esphome/components/api/api_buffer.h b/esphome/components/api/api_buffer.h index 8feaad51834..00801e3ee58 100644 --- a/esphome/components/api/api_buffer.h +++ b/esphome/components/api/api_buffer.h @@ -10,9 +10,9 @@ namespace esphome::api { /// Helper to use make_unique_for_overwrite where available (skips zero-fill), -/// falling back to make_unique on older GCC (ESP8266, BK72xx, LN882x). +/// falling back to make_unique on older GCC (ESP8266, LibreTiny). inline std::unique_ptr make_buffer(size_t n) { -#if defined(USE_ESP8266) || defined(USE_BK72XX) || defined(USE_LN882X) +#if defined(USE_ESP8266) || defined(USE_LIBRETINY) return std::make_unique(n); #else return std::make_unique_for_overwrite(n);