Skip to content

Commit

Permalink
1.18.2
Browse files Browse the repository at this point in the history
  • Loading branch information
adriankumpf committed Mar 27, 2020
1 parent b65002e commit 80f3614
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## [Unreleased]

## [1.18.2] - 2020-03-28

### Bug Fixes

- Fix an issue that could cause charging sessions not to be properly recorded if the API reported incomplete charge data
- Fix a problem that could cause the TeslaFi import to fail

## [1.18.1] - 2020-03-23

### Bug Fixes
Expand Down
8 changes: 4 additions & 4 deletions assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions lib/teslamate/vehicles/vehicle.ex
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,8 @@ defmodule TeslaMate.Vehicles.Vehicle do
def handle_event(:internal, {:update, {:asleep, _vehicle}} = event, {:charging, cproc}, data) do
Logger.warn("Vehicle went asleep while charging (?)", car_id: data.car.id)

Repo.transaction(fn ->
{:ok, _} = call(data.deps.log, :complete_charging_process, [cproc])
Logger.info("Charging / Aborted", car_id: data.car.id)
end)
{:ok, _} = call(data.deps.log, :complete_charging_process, [cproc])
Logger.info("Charging / Aborted", car_id: data.car.id)

{:next_state, :start, data, {:next_event, :internal, event}}
end
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule TeslaMate.MixProject do
def project do
[
app: :teslamate,
version: "1.18.1",
version: "1.18.2",
elixir: "~> 1.9",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
Expand Down

0 comments on commit 80f3614

Please sign in to comment.