edf500e66b9122837c2e46f4615a89aa058e10ec,homeassistant/components/media_player/roku.py,,setup_platform,#Any#Any#Any#Any#,41

Before Change


    Setup the Roku platform.
    hosts = []

    if discovery_info and discovery_info in KNOWN_HOSTS:
        return

    if discovery_info is not None:
        _LOGGER.debug("Discovered Roku: %s", discovery_info[0])
        hosts.append(discovery_info[0])

After Change


    if discovery_info:
        host = discovery_info[0]

        if host in KNOWN_HOSTS:
            return

        _LOGGER.debug("Discovered Roku: %s", host)
        hosts.append(discovery_info[0])

    elif CONF_HOST in config:
        hosts.append(config.get(CONF_HOST))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: edf500e66b9122837c2e46f4615a89aa058e10ec
Time: 2017-04-11
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/media_player/roku.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 8703124c760df303d29571aa975a72cc4f868f09
Time: 2018-01-17
Author: pierre.staahl@gmail.com
File Name: homeassistant/components/media_player/yamaha.py
Class Name:
Method Name: setup_platform


Project Name: streamlit/streamlit
Commit Name: e0e9d7350826c7d968e48181cea38bde23942c30
Time: 2019-06-19
Author: tconkling@gmail.com
File Name: lib/streamlit/Server.py
Class Name: Server
Method Name: _add_browser_connection