Skip to content

Commit

Permalink
InfluxDB: fix vehicle limit soc data type
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Apr 8, 2024
1 parent c1829fd commit 7d833ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/loadpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,8 @@ func (lp *Loadpoint) publishSocAndRange() {
if limit, err := vs.GetLimitSoc(); err == nil {
apiLimitSoc = int(limit)
lp.log.DEBUG.Printf("vehicle soc limit: %d%%", limit)
lp.publish(keys.VehicleLimitSoc, limit)
// https://github.com/evcc-io/evcc/issues/13349
lp.publish(keys.VehicleLimitSoc, float64(limit))
} else if !errors.Is(err, api.ErrNotAvailable) {
lp.log.ERROR.Printf("vehicle soc limit: %v", err)
}
Expand Down

0 comments on commit 7d833ac

Please sign in to comment.