diff --git a/requirements.txt b/requirements.txt index cdd6743f..32181a09 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/tests/test_charge_point_v16.py b/tests/test_charge_point_v16.py index cc99d9a7..919cbe13 100644 --- a/tests/test_charge_point_v16.py +++ b/tests/test_charge_point_v16.py @@ -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, ) @@ -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" @@ -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, )