Hardybarth Salia: ignore heartbeat errors

This commit is contained in:
andig 2023-02-23 09:54:51 +01:00
parent f7e21b4c00
commit dba335a2c0

View file

@ -114,9 +114,9 @@ func NewSalia(uri string, cache time.Duration) (api.Charger, error) {
func (wb *Salia) heartbeat() {
for ; true; <-time.NewTicker(30 * time.Second).C {
if err := wb.post(salia.HeartBeat, "alive"); err != nil {
wb.log.ERROR.Println("heartbeat:", err)
}
// https://github.com/evcc-io/evcc/discussions/6336#discussioncomment-5077530
// ignore error with fw 1.8.xx
_ = wb.post(salia.HeartBeat, "alive")
}
}