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

Coroutine not iterable when sending to dream screen #16

Closed
J3n50m4t opened this issue May 12, 2019 · 2 comments · Fixed by #17
Closed

Coroutine not iterable when sending to dream screen #16

J3n50m4t opened this issue May 12, 2019 · 2 comments · Fixed by #17

Comments

@J3n50m4t
Copy link
Owner

HA Version: 0.92.2
Hassio on rpi 3.

Dreamscreen just stopped working few weeks ago. Just realized today, it didn't switch on and off.
The strange part is, in the states view the dreamscreen updates, I just can't switch modes, sources and brightness etc.

'coroutine' object is not iterable
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/components/websocket_api/commands.py", line 121, in handle_call_service
    connection.context(msg))
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1138, in async_call
    self._execute_service(handler, service_call))
  File "/usr/local/lib/python3.7/site-packages/homeassistant/core.py", line 1160, in _execute_service
    await handler.func(service_call)
  File "/config/custom_components/dreamscreen/__init__.py", line 101, in async_handle_dreamscreen_services
    for entity in target_entities:
TypeError: 'coroutine' object is not iterable
@JasonEMartin
Copy link

Hi, I believe the issue is to do with Python 3.7. Rolling back to an earlier version of Home Assistant, 0.80.1 which uses 3.6 has for me, restored functionality.

@J3n50m4t
Copy link
Owner Author

Fixed it - tested on latest HA Version 0.93.1

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

Successfully merging a pull request may close this issue.

2 participants