46216c3bda00eb753b2040218fb801f11c9e96de,homeassistant/components/media_player/sonos.py,,setup_platform,#Any#Any#Any#Any#,48

Before Change


    descriptions = load_yaml_config_file(
        path.join(path.dirname(__file__), "services.yaml"))

    hass.services.register(DOMAIN, SERVICE_GROUP_PLAYERS,
                           group_players_service,
                           descriptions.get(SERVICE_GROUP_PLAYERS))

    hass.services.register(DOMAIN, SERVICE_UNJOIN,
                           unjoin_service,
                           descriptions.get(SERVICE_UNJOIN))

After Change


    if discovery_info:
        player = soco.SoCo(discovery_info)
        if player.is_visible:
            device = SonosDevice(hass, player)
            add_devices([device])
            if not DEVICES:
                register_services(hass)
            DEVICES.append(device)
            return True
        return False

    players = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: 46216c3bda00eb753b2040218fb801f11c9e96de
Time: 2016-07-19
Author: americanwookie@gmail.com
File Name: homeassistant/components/media_player/sonos.py
Class Name:
Method Name: setup_platform


Project Name: uber/petastorm
Commit Name: a31ae1708b62413c94ffae9fb6aab21b37f78212
Time: 2020-03-12
Author: weichen.xu@databricks.com
File Name: petastorm/spark/spark_dataset_converter.py
Class Name:
Method Name: _cache_df_or_retrieve_cache_path


Project Name: home-assistant/home-assistant
Commit Name: 0eee544d1709ce3029f17fc2d21a8cd2378438f7
Time: 2017-08-28
Author: jordy@fusion-ict.nl
File Name: homeassistant/components/rainbird.py
Class Name:
Method Name: setup