From 607394a0a0cd672d7dc9c953851e153fd01a902b Mon Sep 17 00:00:00 2001 From: Jason Carter Date: Sat, 29 Apr 2017 23:54:45 -0400 Subject: [PATCH] Netdisco now returns a dictionary while it used to be a tuple, fixed (#7350) --- homeassistant/components/media_player/roku.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/media_player/roku.py b/homeassistant/components/media_player/roku.py index 59e6a19bff8..8d45945eee1 100644 --- a/homeassistant/components/media_player/roku.py +++ b/homeassistant/components/media_player/roku.py @@ -43,13 +43,13 @@ def setup_platform(hass, config, add_devices, discovery_info=None): hosts = [] if discovery_info: - host = discovery_info[0] + host = discovery_info.get("host") if host in KNOWN_HOSTS: return _LOGGER.debug('Discovered Roku: %s', host) - hosts.append(discovery_info[0]) + hosts.append(discovery_info.get("host")) elif CONF_HOST in config: hosts.append(config.get(CONF_HOST))