chore: round evopt-batteries forecast timestamps to seconds (#31763)

This commit is contained in:
andig 2026-07-13 17:47:57 +02:00 • committed by GitHub
parent 792354959c
commit 1f411e3dfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -672,7 +672,7 @@ func matchSoc(ts []float32, fun func(float32) bool) time.Time {
for i, soc := range ts {
if fun(soc) {
// TODO first slot
return time.Now().Add(time.Duration(i+1) * tariff.SlotDuration)
return time.Now().Add(time.Duration(i+1) * tariff.SlotDuration).Round(time.Second)
}
}