Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Detected I/O inside the event loop"; Only "daily activities" are updated #5

Open
gillespinault opened this issue May 6, 2020 · 4 comments

Comments

@gillespinault
Copy link

Thanks for this integration!
On my instance, only the "daily activities" are updated
The log presents those warnings, could it be related?

Log Details (WARNING)
Logger: homeassistant.util.async_
Source: util/async_.py:120
First occurred: 1:09:33 AM (187 occurrences)
Last logged: 2:40:04 PM

- Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for polar doing I/O at custom_components/polar/sensor.py, line 84: return getattr(self._accesslink, self._endpoint.name).create_transaction(self._user_id, self._access_token)
- Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for polar doing I/O at custom_components/polar/sensor.py, line 87: result = getattr(transaction, self._endpoint.list_method)()
- Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for polar doing I/O at custom_components/polar/sensor.py, line 91: return getattr(transaction, self._endpoint.get_method)(url)
- Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for polar doing I/O at custom_components/polar/sensor.py, line 205: transaction.commit()

@burnnat
Copy link
Owner

burnnat commented May 6, 2020

Thanks for the report, I'll take a look. 👍

@tomecki88
Copy link

tomecki88 commented Jul 22, 2020

Hi @burnnat,
any update regarding this issue?
I installed Polar integration and I'm having this same issue:

Logger: homeassistant.util.async_
Source: util/async_.py:120
First occurred: 9:52:37 (2 occurrences)
Last logged: 9:52:38

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for polar doing I/O at custom_components/polar/config_flow.py, line 97: token_response = self.accesslink.get_access_token(user_input['code'])
Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for polar doing I/O at custom_components/polar/config_flow.py, line 108: self.accesslink.users.register(access_token=data[CONF_ACCESS_TOKEN])

Also entities are not updated.

@shaunbarlow
Copy link

Hi @burnnat ,
I am getting the exact same errors as @tomecki88
Is there anything I can try to get you more info on this error from my side?

@burnnat
Copy link
Owner

burnnat commented Oct 1, 2020

Thanks @shaunbarlow and everyone, I think there's enough info for debugging but unfortunately for personal reasons I haven't had time to work on a fix. I'm hoping to get back in sync with the latest version of Home Assistant (#6) and look at this issue as well over the next few months. Appreciate your patience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants