Can legendgroup be set for carpet plots?

I’d like to be able to toggle several carpets on and off in one figure based on some given groups but plotly.graph_objects.Carpet does not seem to have a legendgroup parameter - I’m not sure if this is a bug or not since there was a discussion that was closed: Feature request: Add 'showlegend' to Carpet plots · Issue #3828 · plotly/plotly.js · GitHub

Is there something else I can pass in to make this work? Thanks!