Skip to content

Commit 3d842cc

Browse files
authored
Update test_charge_point.py
1 parent 6fd5a84 commit 3d842cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_charge_point.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def test_cms_responses(hass):
4444

4545
cp = ChargePoint("CP_1", ws)
4646
#asyncio.gather(
47-
await cp.start()
47+
task = asyncio.create_task(cp.start())
4848
await cp.send_boot_notification()
4949
await cp.send_heartbeat()
5050
await cp.send_authorize()
@@ -57,7 +57,7 @@ async def test_cms_responses(hass):
5757
await cs.set_charger_state(cp_id="CP_1", service_name="reset")
5858
await cs.set_charger_state(cp_id="CP_1", service_name="unlock")
5959
#)
60-
await hass.async_block_till_done()
60+
task.cancel()
6161

6262
class ChargePoint(cp):
6363
"""Representation of real client Charge Point."""

0 commit comments

Comments
 (0)