860a12cffbecbfb547dcb3d91f20a162e0445963,homeassistant/components/media_player/kodi.py,,setup_platform,#Any#Any#Any#Any#,46

Before Change


        KodiDevice(
            config.get(CONF_NAME),
            url,
            auth=(config.get(CONF_USERNAME), config.get(CONF_PASSWORD)),
            turn_off_action=config.get(CONF_TURN_OFF_ACTION)),
    ])

After Change


    if jsonrpc_url:
        url = jsonrpc_url.rstrip("/jsonrpc")

    username = config.get(CONF_USERNAME)
    password = config.get(CONF_PASSWORD)

    if username is not None:
        auth = (username, password)
    else:
        auth = None

    add_devices([
        KodiDevice(
            config.get(CONF_NAME),
            url,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: home-assistant/home-assistant
Commit Name: 860a12cffbecbfb547dcb3d91f20a162e0445963
Time: 2016-12-06
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/media_player/kodi.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 75a39352ffb8c5e7b24fe10a9a66d0839224d3e9
Time: 2018-01-03
Author: daenny@users.noreply.github.com
File Name: homeassistant/components/climate/homematic.py
Class Name: HMThermostat
Method Name: current_operation


Project Name: home-assistant/home-assistant
Commit Name: 5e2911f0717585e25d1c2537279285d642536005
Time: 2016-12-06
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/media_player/kodi.py
Class Name:
Method Name: setup_platform