Add charging_state to VehicleSummary (#3471)

* Add charging_state to VehicleSummary

Fixes: #3078

* WIP
This commit is contained in:
Brian May
2023-11-23 19:06:51 +11:00
committed by GitHub
parent 40fcda6ccb
commit b643b45ca0
2 changed files with 4 additions and 1 deletions
@@ -91,6 +91,7 @@ defmodule TeslaMate.Vehicles.Vehicle.ChargingTest do
assert_receive {:pubsub, {:broadcast, _, _, %Summary{state: :online, since: ^s2}}}
assert_receive {:pubsub, {:broadcast, _, _, %Summary{state: :online}}}
refute_receive _
end
@@ -151,6 +152,7 @@ defmodule TeslaMate.Vehicles.Vehicle.ChargingTest do
assert_receive {:pubsub, {:broadcast, _, _, %Summary{state: :online}}}
assert_receive {:pubsub, {:broadcast, _, _, %Summary{state: :online}}}
refute_receive _
end