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 #31

Closed
gigatexel opened this issue Mar 24, 2021 · 3 comments
Closed

Detected I/O inside the event loop #31

gigatexel opened this issue Mar 24, 2021 · 3 comments

Comments

@gigatexel
Copy link
Contributor

gigatexel commented Mar 24, 2021

When our washing machine is started/running, this warning occurs.
Seems to be related to async:

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for miele doing I/O at custom_components/miele/miele_at_home.py, line 71

@gigatexel
Copy link
Contributor Author

gigatexel commented Mar 29, 2021

Updated but not fixed, unfortunately

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for miele doing I/O at custom_components/miele/miele_at_home.py, line 71: result = await self._session._session.put(

but also:

[2775370984] object Response can't be used in 'await' expression
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 141, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1488, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1523, in _execute_service
    await handler.job.target(service_call)
  File "/config/custom_components/miele/__init__.py", line 210, in _action_service
    await _apply_service(service, MieleDevice.action, body)
  File "/config/custom_components/miele/__init__.py", line 205, in _apply_service
    await service_func(device, *service_func_args)
  File "/config/custom_components/miele/__init__.py", line 331, in action
    await self._client.action(self.unique_id, action)
  File "/config/custom_components/miele/miele_at_home.py", line 71, in action
    result = await self._session._session.put(
TypeError: object Response can't be used in 'await' expression

@gigatexel
Copy link
Contributor Author

Unfortunately, not actually fixed with new version:

image

@kloknibor
Copy link
Contributor

#49 does resolve this issue, thanks for your contribution!

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

2 participants