History-graph & binary_sensor & "device_class: problem" - why wrong colors?

Create a history-graph with some binary_sensor of “problem” device class.
The sensor can be “OK” & “Problem”.
So why “OK” is of red color and “Problem” is green, why they are not green & red ???
изображение

Because we have no control over the colours used in the state history graph and the off state is usually coloured red.