Battery control: graceful smart cost error handling (#13172)
This commit is contained in:
parent
d47f97d2f0
commit
1e6780b8b7
1 changed files with 1 additions and 2 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue