lbbrhzn / ocpp

Home Assistant integration for electric vehicle chargers that support the Open Charge Point Protocol (OCPP).
MIT License
206 stars 64 forks source link

Detected blocking call to open inside the event loop #1195

Closed TNTLarsn closed 1 month ago

TNTLarsn commented 1 month ago

Version of the custom_component

v0.5.6

Configuration

no yaml config available

Describe the bug

Happened after Upgrade to HA 2024.6.0 and while disconnecting the EV from the charger

Debug log


Logger: homeassistant.util.loop
Quelle: util/loop.py:84
Erstmals aufgetreten: 13:10:17 (2 Vorkommnisse)
Zuletzt protokolliert: 13:10:17

Detected blocking call to open inside the event loop by custom integration 'ocpp' at custom_components/ocpp/api.py, line 1005: await super()._handle_call(msg) (offender: /usr/local/lib/python3.12/site-packages/ocpp/messages.py, 
line 164: with open(path, "r", encoding="utf-8-sig") as f:), please create a bug report at https://github.com/lbbrhzn/ocpp/issues Traceback (most recent call last): File "<frozen runpy>", 
line 198, in _run_module_as_main File "<frozen runpy>", 
line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", 
line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", 
line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", 
line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", 
line 672, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", 
line 639, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", 
line 1988, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", 
line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.12/site-packages/ocpp/charge_point.py", 
line 238, in start await self.route_message(message) File "/usr/local/lib/python3.12/site-packages/ocpp/charge_point.py", 
line 261, in route_message await self._handle_call(msg) File "/config/custom_components/ocpp/api.py", 
line 1005, in _handle_call await super()._handle_call(msg)