Warnings when adding line segments to candlestick plot

Hi -

When adding line segments to a candlestick plot using add_segments I get this warning:
“Warning: ‘scatter’ objects don’t have these attributes: ‘open’, ‘close’, ‘layer’, ‘high’, ‘low’”

I have a lot of line segments, and so get a lot of warnings when I run y shiny app. I understand why the warning is happening, but I need to find a way to suppress it or solve it. The plot is fine, but the warnings are a bit of a hassle and obscure other output I want to see.

Thanks for any help.