Can legendgroup be set for carpet plots?

I鈥檇 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鈥檓 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!