Closed Ben-Leys closed 4 months ago
This should be fixed with the above PR. I wasn't able to reproduce, but it has most likely to do with matching float values.
Explanation: The options we present are dynamically calculated based on the current pricing situation. Since the price limit can also be set via API with arbitrary values, we ensure that the existing value is also present in the options list. To check the existence, we compared float values. Now we only compare up to two digit precision.
Describe the bug
When setting temporary fast charging while in PV mode: after selecting a value, and then opening the list again, sometimes (not for each value) the selected value appears twice in the list. I currently have it for values 2, 5, 6, 9, 12 and 14 ct. See screenshot for example of 9 ct appearing twice in the list. Maybe this issue has something to do with one of the future prices being negative(which often happens these days). Because I can't reproduce it anymore since the exact moment the negative prices were in the past.![image](https://github.com/evcc-io/evcc/assets/166319696/fc933563-03cb-4cfc-9936-60fd02b3b936)
Steps to reproduce
Configuration details
Log details
What type of operating system are you running?
Docker container
Version
evcc 0.125.0 (090b0a70)