Some minor fixes
This commit is contained in:
@ -20,7 +20,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
AppVersion = "1.0.1" // the current application version.
|
||||
AppVersion = "1.1.0" // the current application version.
|
||||
AppName = "mysubarumq" // the short app name
|
||||
)
|
||||
|
||||
|
2
go.mod
2
go.mod
@ -5,7 +5,7 @@ go 1.24
|
||||
replace github.com/armon/go-metrics => github.com/hashicorp/go-metrics v0.5.3
|
||||
|
||||
require (
|
||||
git.savin.nyc/alex/mysubaru v0.0.0-20250605181433-57e0e7899dc0
|
||||
git.savin.nyc/alex/mysubaru v0.0.0-20250605204346-28f650dc7d45
|
||||
github.com/eclipse/paho.mqtt.golang v1.5.0
|
||||
github.com/hashicorp/consul/api v1.32.1
|
||||
github.com/spf13/viper v1.20.1
|
||||
|
@ -405,7 +405,7 @@ func (s *MySubaruClient) mySubaruStatusToMQTTMessage(v *mysubaru.Vehicle) []*bus
|
||||
tq := len(v.Tires)
|
||||
tc := 1
|
||||
for n, t := range v.Tires {
|
||||
tires = tires + `"` + n + `":` + strconv.Itoa(t.Pressure)
|
||||
tires = tires + `"` + n + `":` + strconv.Itoa(t.PressurePsi)
|
||||
if tc != tq {
|
||||
tires = tires + `,`
|
||||
}
|
||||
|
Reference in New Issue
Block a user