mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Netdisco now returns a dictionary while it used to be a tuple, fixed (#7350)
This commit is contained in:
parent
e4ebae55d5
commit
607394a0a0
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user