db2cbf33c3172c889fcc70e95efb39bdd8d7e0f1,homeassistant/components/media_player/squeezebox.py,,setup_platform,#Any#Any#Any#Any#,65

Before Change


// pylint: disable=unused-argument
def setup_platform(hass, config, add_devices, discovery_info=None):
     Sets up the squeezebox platform. 
    add_devices([
        SqueezeBoxDevice(
            config.get("name", "SqueezeBox"),
            config.get("server"),
            config.get("player"),
            config.get("port", "9090"),
            config.get("user", None),
            config.get("password", None)
        )])


// pylint: disable=too-many-instance-attributes
// pylint: disable=too-many-public-methods

After Change


    if not lms.init_success:
        return False

    add_devices(lms.create_players())

    return True


class LogitechMediaServer(object):
    def __init__(self, host, port, username, password):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: db2cbf33c3172c889fcc70e95efb39bdd8d7e0f1
Time: 2015-08-05
Author: Per.J.Sandstrom@gmail.com
File Name: homeassistant/components/media_player/squeezebox.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 4195254280fa29035fe4414cd211990893f939e7
Time: 2016-07-23
Author: kellerza@gmail.com
File Name: homeassistant/components/switch/qwikswitch.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 4195254280fa29035fe4414cd211990893f939e7
Time: 2016-07-23
Author: kellerza@gmail.com
File Name: homeassistant/components/light/qwikswitch.py
Class Name:
Method Name: setup_platform