09d531b3b95e7943df53233d1abcb40d7e87de94,homeassistant/components/media_player/gpmdp.py,,setup_platform,#Any#Any#Any#Any#,22

Before Change


    name = config.get("name", "GPM Desktop Player")
    address = config.get("address")

    if address is None:
        _LOGGER.error("Missing address in config")
        return False

    add_devices([GPMDP(name, address, create_connection)])


class GPMDP(MediaPlayerDevice):

After Change



def setup_platform(hass, config, add_devices_callback, discovery_info=None):
    Setup the GPMDP platform.
    codeconfig = _load_config(hass.config.path(GPMDP_CONFIG_FILE))
    if len(codeconfig):
        code = codeconfig.get("CODE")
    elif discovery_info is not None:
        if "gpmdp" in _CONFIGURING:
            return
        code = None
    else:
        code = None
    setup_gpmdp(hass, config, code, add_devices_callback)


class GPMDP(MediaPlayerDevice):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: home-assistant/home-assistant
Commit Name: 09d531b3b95e7943df53233d1abcb40d7e87de94
Time: 2016-08-18
Author: nkgilley@gmail.com
File Name: homeassistant/components/media_player/gpmdp.py
Class Name:
Method Name: setup_platform


Project Name: home-assistant/home-assistant
Commit Name: 9e1fa7ef42cbad0f2fe36e51651a6f1d00d31dec
Time: 2018-08-19
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/recorder/migration.py
Class Name:
Method Name: migrate_schema


Project Name: home-assistant/home-assistant
Commit Name: 3c5e62d47eeded341b41cbe769f3e29b7b6f1614
Time: 2018-08-19
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/recorder/migration.py
Class Name:
Method Name: migrate_schema