diff --git a/esphome/components/api/api_frame_helper.h b/esphome/components/api/api_frame_helper.h index a625ab52b2..dd103f1c37 100644 --- a/esphome/components/api/api_frame_helper.h +++ b/esphome/components/api/api_frame_helper.h @@ -167,6 +167,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