Circuit: fix validateCurrent and validatePower (#20183)

This commit is contained in:
mfuchs1984 2025-04-03 10:52:35 +02:00 • committed by GitHub
parent 167124bfa3
commit 455bc3348c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 39 additions and 28 deletions

View file

@ -239,8 +239,8 @@ type Circuit interface {
SetMaxPower(float64)
SetMaxCurrent(float64)
Update([]CircuitLoad) error
ValidateCurrent(old, new float64) float64
ValidatePower(old, new float64) float64
ValidateCurrent(old, new float64, charging bool) float64
ValidatePower(old, new float64, charging bool) float64
}
// Redactor is an interface to redact sensitive data