Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ ocpp==2.0.0
websockets==15.0.1
jsonschema==4.24.0
pre-commit==4.2.0
pytest-homeassistant-custom-component==0.13.233
pytest-homeassistant-custom-component==0.13.256
setuptools>=70.0.0 # not directly required, pinned by Snyk to avoid a vulnerability
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability
5 changes: 3 additions & 2 deletions tests/test_charge_point_v16.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ async def test_cms_responses_actions_v16(
cp.send_meter_periodic_data(),
cp.send_main_meter_clock_data(),
# add delay to allow meter data to be processed
cp.send_stop_transaction(1),
cp.send_stop_transaction(2),
),
timeout=5,
)
Expand All @@ -528,6 +528,7 @@ async def test_cms_responses_actions_v16(
assert cs.get_unit(cpid, "Energy.Active.Import.Register") == "kWh"

# Last sent "Energy.Active.Import.Register" value with transaction id should be here.
# Meter value sent with stop transaction should not be used to calculate session energy
assert int(cs.get_metric(cpid, "Energy.Session")) == int(1305570 / 1000)
assert cs.get_unit(cpid, "Energy.Session") == "kWh"

Expand All @@ -547,7 +548,7 @@ async def test_cms_responses_actions_v16(
cp.send_meter_energy_kwh(),
cp.send_meter_clock_data(),
# add delay to allow meter data to be processed
cp.send_stop_transaction(1),
cp.send_stop_transaction(2),
),
timeout=5,
)
Expand Down
Loading