Skip to content

Commit

Permalink
Fix blocking warning (#1198)
Browse files Browse the repository at this point in the history
  • Loading branch information
drc38 authored Jun 6, 2024
1 parent 5ca98e5 commit 27402bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 27402bf

Please sign in to comment.