Skip to content

Commit e100517

Browse files
authored
Update test_charge_point.py
1 parent 577bb85 commit e100517

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_charge_point.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ async def test_cms_responses(hass):
4141
async with websockets.connect(
4242
"ws://localhost:9000/CP_1", subprotocols=["ocpp1.6"],
4343
) as ws:
44+
# use a different id for debugging
4445
cp = ChargePoint("CP_1_test", ws)
4546
try:
4647
await asyncio.wait_for(asyncio.gather(cp.start(),
@@ -53,7 +54,7 @@ async def test_cms_responses(hass):
5354
cp.send_start_transaction(),
5455
cp.send_meter_data(),
5556
cp.send_stop_transaction(),
56-
cs.start_transaction()), timeout = 7,
57+
cs.charge_points["CP_1"].start_transaction()), timeout = 7,
5758
)
5859
except asyncio.TimeoutError:
5960
pass

0 commit comments

Comments
 (0)