Skip to content

Commit

Permalink
Merge pull request #345 from pkuehnel/fix/loggingTypos
Browse files Browse the repository at this point in the history
fix(chore): update charing to charging
  • Loading branch information
pkuehnel authored Oct 3, 2022
2 parents 8d6529a + 3d11930 commit c90a418
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion TeslaSolarCharger/Server/Contracts/IChargingCostService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace TeslaSolarCharger.Server.Contracts;

public interface IChargingCostService
{
Task AddPowerDistributionForAllCharingCars();
Task AddPowerDistributionForAllChargingCars();
Task FinalizeHandledCharges();
Task<DtoChargeSummary> GetChargeSummary(int carId);
Task UpdateChargePrice(DtoChargePrice dtoChargePrice);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public PowerDistributionAddJob(ILogger<ChargeTimeUpdateJob> logger, IChargingCos
public async Task Execute(IJobExecutionContext context)
{
_logger.LogTrace("Executing Job to update ChargeTimes");
await _service.AddPowerDistributionForAllCharingCars().ConfigureAwait(false);
await _service.AddPowerDistributionForAllChargingCars().ConfigureAwait(false);
}
}
4 changes: 2 additions & 2 deletions TeslaSolarCharger/Server/Services/ChargingCostService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ public async Task<List<DtoChargePrice>> GetChargePrices()
return chargePrices;
}

public async Task AddPowerDistributionForAllCharingCars()
public async Task AddPowerDistributionForAllChargingCars()
{
_logger.LogTrace("{method}()", nameof(AddPowerDistributionForAllCharingCars));
_logger.LogTrace("{method}()", nameof(AddPowerDistributionForAllChargingCars));
//ToDO: remove before release
var chargePrice = await _teslaSolarChargerContext.ChargePrices
.FirstOrDefaultAsync().ConfigureAwait(false);
Expand Down
4 changes: 2 additions & 2 deletions TeslaSolarCharger/Server/Services/ChargingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public async Task SetNewChargingValues()
if (powerToControlIncludingChargingPower <
minimumChargingPower)
{
_logger.LogDebug("Set Should charge since to early date so car will stop charing.");
_logger.LogDebug("Set Should charge since to early date so car will stop charging.");
relevantCar.CarState.ShouldStopChargingSince = new DateTime(2022, 1, 1);
}
}
Expand Down Expand Up @@ -300,7 +300,7 @@ private async Task<int> ChangeCarAmp(Car car, int ampToChange)
//Falls Klima an (Laden nicht deaktivierbar), oder Ausschaltbefehl erst seit Kurzem
if (car.CarState.ClimateOn == true || earliestSwitchOff > DateTime.Now)
{
_logger.LogDebug("Can not stop charing: Climate on: {climateState}, earliest Switch Off: {earliestSwitchOff}",
_logger.LogDebug("Can not stop charging: Climate on: {climateState}, earliest Switch Off: {earliestSwitchOff}",
car.CarState.ClimateOn,
earliestSwitchOff);
if (car.CarState.ChargerActualCurrent != minAmpPerCar)
Expand Down

0 comments on commit c90a418

Please sign in to comment.