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 custom_components/ocpp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ async def monitor_connection(self):

async def _handle_call(self, msg):
try:
await super()._handle_call(msg)
await self.hass.async_create_task(super()._handle_call(msg))
except NotImplementedError as e:
response = msg.create_call_error(e).to_json()
await self._send(response)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_charge_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ async def test_services(hass, socket_enabled):
cp2.send_stop_transaction(),
cp2.send_meter_periodic_data(),
),
timeout=5,
timeout=10,
)
except asyncio.TimeoutError:
pass
Expand Down