chore: allow small negative charge power (#6990)
This commit is contained in:
parent
377089fab8
commit
09a05d000e
1 changed files with 3 additions and 2 deletions
|
|
@ -1196,8 +1196,9 @@ func (lp *Loadpoint) UpdateChargePower() {
|
|||
lp.log.DEBUG.Printf("charge power: %.0fW", value)
|
||||
lp.publish("chargePower", value)
|
||||
|
||||
// use -1 for https://github.com/evcc-io/evcc/issues/2153
|
||||
if lp.chargePower < -1 {
|
||||
// https://github.com/evcc-io/evcc/issues/2153
|
||||
// https://github.com/evcc-io/evcc/issues/6986
|
||||
if lp.chargePower < -20 {
|
||||
lp.log.WARN.Printf("charge power must not be negative: %.0f", lp.chargePower)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue