chore: fix typos

This commit is contained in:
andig 2022-04-16 12:39:44 +02:00
parent 787a9dcf08
commit f9eef1a26f
4 changed files with 5 additions and 5 deletions

View file

@ -300,11 +300,11 @@ func (c *EEBus) Enable(enable bool) error {
return c.writeCurrentLimitData([]float64{data.EVData.LimitsL1.Max, data.EVData.LimitsL2.Max, data.EVData.LimitsL3.Max})
}
// in non now mode only enable with min settings, so we don't excessivly consume power in case it has to be turned of in the next cycle anyways
// in non now mode only enable with min settings, so we don't excessively consume power in case it has to be turned of in the next cycle anyways
return c.writeCurrentLimitData([]float64{data.EVData.LimitsL1.Min, data.EVData.LimitsL2.Min, data.EVData.LimitsL3.Min})
}
// returns true if the connected EV supports charging recommandation
// returns true if the connected EV supports charging recommendation
func (c *EEBus) optimizationSelfConsumptionAvailable() bool {
data, err := c.cc.GetData()
if err == nil {

View file

@ -17,7 +17,7 @@ func init() {
}
}
func (lp *vehicleCoordinator) aquire(owner interface{}, vehicle api.Vehicle) {
func (lp *vehicleCoordinator) acquire(owner interface{}, vehicle api.Vehicle) {
lp.tracked[vehicle] = owner
}

View file

@ -54,7 +54,7 @@ func TestVehicleDetectByStatus(t *testing.T) {
}
if res != nil {
c.aquire(lp, res)
c.acquire(lp, res)
} else {
c.release(res)
}

View file

@ -796,7 +796,7 @@ func (lp *LoadPoint) setActiveVehicle(vehicle api.Vehicle) {
}
to := "unknown"
if vehicle != nil {
coordinator.aquire(lp, vehicle)
coordinator.acquire(lp, vehicle)
to = vehicle.Title()
}
lp.log.INFO.Printf("vehicle updated: %s -> %s", from, to)