ReneNulschDE / mbapi2020

Custom Component to integrate MercedesME devices into Home-Assistant
Other
157 stars 30 forks source link

Detected blocking call to open inside the event loop #228

Closed ReneNulschDE closed 4 months ago

ReneNulschDE commented 4 months ago

The problem

Problem with upcoming HA2024.06

What version of MBAPI2020 do use?

0.14.0

What was the last working version of MBAPI2020?

No response

What type of installation are you running?

Home Assistant Core

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.util.loop
Source: util/loop.py:90
First occurred: 10:34:08 AM (2 occurrences)
Last logged: 10:34:08 AM

Detected blocking call to open inside the event loop by custom integration 'mbapi2020' at custom_components/mbapi2020/oauth.py, line 184

Additional information

No response

ReneNulschDE commented 4 months ago

More issues...

Logger: homeassistant.util.loop Source: util/loop.py:90 First occurred: 10:34:25 AM (899 occurrences) Last logged: 1:24:21 PM

Detected blocking call to open inside the event loop by custom integration 'mbapi2020' at custom_components/mbapi2020/oauth.py, line 239: with open(self._config_entry_token_path, "w") as token_file: (offender: /home/rene/projects/hadev/custom_components/mbapi2020/oauth.py, line 239: with open(self._config_entry_token_path, "w") as token_file:), please create a bug report at https://github.com/ReneNulschDE/mbapi2020/issues Detected blocking call to open inside the event loop by custom integration 'mbapi2020' at custom_components/mbapi2020/client.py, line 1195: current_file = open(f"{path}/{datatype}{int(round(time.time() 1000))}.json", "w") (offender: /home/rene/projects/hadev/custom_components/mbapi2020/client.py, line 1195: current_file = open(f"{path}/{datatype}{int(round(time.time() 1000))}.json", "w")), please create a bug report at https://github.com/ReneNulschDE/mbapi2020/issues Detected blocking call to open inside the event loop by custom integration 'mbapi2020' at custom_components/mbapi2020/client.py, line 1182: current_file = open(f"{path}/{datatype}{int(round(time.time() 1000))}", "wb") (offender: /home/rene/projects/hadev/custom_components/mbapi2020/client.py, line 1182: current_file = open(f"{path}/{datatype}{int(round(time.time() 1000))}", "wb")), please create a bug report at https://github.com/ReneNulschDE/mbapi2020/issues

ReneNulschDE commented 4 months ago

https://github.com/ReneNulschDE/mbapi2020/releases/tag/v0.15.0-beta.1