Sunpath legend parameter not working

I was trying to follow this youtube tutorial to make a custom legend parameters to show days with temperatures too cold(<12) and too hot(>26): 3 - Getting Started With Ladybug - Sunpath Basics - YouTube

But then whenever I try linking the legend parameter to the “legend parameter” of the “sunpath”, error message is shown: "1. Solution exception:‘LegendParameters’ object has no attribute ‘float

Also, the “analysis period” does not work like the video… although I maaged to do a workaround of it