InfluxDB: fix vehicle limit soc data type
This commit is contained in:
parent
c1829fd494
commit
7d833ac401
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue