We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fd5a84 commit 3d842ccCopy full SHA for 3d842cc
tests/test_charge_point.py
@@ -44,7 +44,7 @@ async def test_cms_responses(hass):
44
45
cp = ChargePoint("CP_1", ws)
46
#asyncio.gather(
47
- await cp.start()
+ task = asyncio.create_task(cp.start())
48
await cp.send_boot_notification()
49
await cp.send_heartbeat()
50
await cp.send_authorize()
@@ -57,7 +57,7 @@ async def test_cms_responses(hass):
57
await cs.set_charger_state(cp_id="CP_1", service_name="reset")
58
await cs.set_charger_state(cp_id="CP_1", service_name="unlock")
59
#)
60
- await hass.async_block_till_done()
+ task.cancel()
61
62
class ChargePoint(cp):
63
"""Representation of real client Charge Point."""
0 commit comments