diff --git a/esphome/components/api/api_frame_helper.h b/esphome/components/api/api_frame_helper.h index 3bc8700699..ed764ea861 100644 --- a/esphome/components/api/api_frame_helper.h +++ b/esphome/components/api/api_frame_helper.h @@ -168,6 +168,7 @@ class APIFrameHelper { std::vector rx_buf_; // Pointer to client info (4 bytes on 32-bit) + // Note: The pointed-to ClientInfo object must outlive this APIFrameHelper instance. const ClientInfo *client_info_{nullptr}; // Group smaller types together