Battery control: graceful smart cost error handling (#13172)

This commit is contained in:
Michael Geers 2024-03-28 08:53:24 +01:00 • committed by GitHub
parent d47f97d2f0
commit 1e6780b8b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -74,8 +74,7 @@ func (site *Site) updateBatteryMode() {
for _, lp := range site.Loadpoints() {
smartCostActive, err := site.smartCostActive(lp)
if err != nil {
site.log.ERROR.Println("smart cost:", err)
continue
site.log.WARN.Println("smart cost:", err)
}
if lp.GetStatus() == api.StatusC && (smartCostActive || lp.IsFastChargingActive()) {