Rename estimate to finish in site logs

This commit is contained in:
andig 2020-12-29 19:30:00 +01:00
parent 87fe402a4f
commit 3c9adfb042

View file

@ -187,11 +187,11 @@ func (site *Site) DumpConfig() {
lp.log.INFO.Printf(" vehicles: %s", presence[len(lp.vehicles) > 0])
for i, v := range lp.vehicles {
_, estimate := v.(api.ChargeFinishTimer)
_, finish := v.(api.ChargeFinishTimer)
_, status := v.(api.VehicleStatus)
_, climate := v.(api.Climater)
lp.log.INFO.Printf(" car %d: estimate %s status %s climate %s",
i, presence[estimate], presence[status], presence[climate],
lp.log.INFO.Printf(" car %d: finish %s status %s climate %s",
i, presence[finish], presence[status], presence[climate],
)
}
}