Rokus no longer discovered

I’m now getting the following error after updating to 0.43.0. Is there anything I can do to help track down whats going wrong?

ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform roku
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_component.py", line 155, in _async_setup_platform
    entity_platform.schedule_add_entities, discovery_info
  File "uvloop/future.pyx", line 230, in __iter__ (uvloop/loop.c:110600)
  File "uvloop/future.pyx", line 432, in uvloop.loop.BaseTask._fast_wakeup (uvloop/loop.c:113980)
  File "uvloop/future.pyx", line 101, in uvloop.loop.BaseFuture._result_impl (uvloop/loop.c:108900)
  File "/usr/local/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/app/homeassistant/components/media_player/roku.py", line 46, in setup_platform
    host = discovery_info[0]
KeyError: 0

Although I haven’t checked my log file, my Roku also doesn’t show up. I just updated to .43 this morning as well.

Yes my Roku has also disappeared sine the 0.43 update. Chromecast is still discovered.

Someones raised a GHI for it: https://github.com/home-assistant/home-assistant/issues/7240

Glad it wasn’t just me! Sorry I didn’t add the issue but I’m so new to the platform I needed to rule out my stupidity first!

If anyone has updated to 43.1, can they confirm this issue has been resolved?

I’ve upgraded and I’m seeing the same issue.

1 Like

Dang. Thank you for letting me know. With this issue and the WeMo bug, I’ve been holding back on updating from 41.

Cheers

Looks like 43.2 came out today. Has anyone confirmed that this bug was squashed?

I am still having discover errors for roku for v 0.43.2

17-05-05 08:04:54 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform roku
Traceback (most recent call last):
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 155, in _async_setup_platform
entity_platform.schedule_add_entities, discovery_info
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/hass/hass_venv/lib/python3.4/site-packages/homeassistant/components/media_player/roku.py”, line 46, in setup_platform
host = discovery_info[0]
KeyError: 0

Ditto here.
Updated to 43.2, and am getting this.
17-05-05 19:36:50 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up platform roku
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 155, in _async_setup_platform
entity_platform.schedule_add_entities, discovery_info
File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
value = future.result()
File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
raise self._exception
File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/media_player/roku.py”, line 46, in setup_platform
host = discovery_info[0]
KeyError: 0

Just updated to 0.44.0 and my Roku is back :wink: