ocpp icon indicating copy to clipboard operation
ocpp copied to clipboard

Blocking call detected

Open drc38 opened this issue 1 year ago • 2 comments

The ocpp integration (https://github.com/lbbrhzn/ocpp) using this library in Home Assistant 2024.06 has detected that the IO open file call in messages.py blocks the event loop.

Would it make sense in charge_point.py to replace calls to validate_payload with the equivalent run in the executor eg await asyncio.get_event_loop().run_in_executor(...,validate_payload,...)?

Or if you have suggestions on how it can be addressed another way that would be great.

Many thanks

drc38 avatar Jun 12 '24 10:06 drc38