mirror of
https://github.com/teslamate-org/teslamate.git
synced 2026-01-24 21:06:08 +08:00
Add charging_state to VehicleSummary (#3471)
* Add charging_state to VehicleSummary Fixes: #3078 * WIP
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user