7eeb623b8f860a09dc89bb9394da2d352de24720,homeassistant/components/media_player/sonos.py,,setup_platform,#Any#Any#Any#Any#,36
Before Change
_LOGGER.warning("No Sonos speakers found.")
return False
add_devices(SonosDevice(hass, p) for p in players)
_LOGGER.info("Added %s Sonos speakers", len(players))
return True
After Change
device.group_players()
device.update_ha_state(True)
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))
return True
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: home-assistant/home-assistant
Commit Name: 7eeb623b8f860a09dc89bb9394da2d352de24720
Time: 2016-05-20
Author: alexander.fortin@gmail.com
File Name: homeassistant/components/media_player/sonos.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: 1a117d0bea557bf5b537fed68f4951178209dfb6
Time: 2016-11-17
Author: james@nimmo.net.nz
File Name: homeassistant/components/alarm_control_panel/envisalink.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: 02f342b670317869e7b9a06184a60955e3d7bc7d
Time: 2016-06-09
Author: infratl@gmail.com
File Name: homeassistant/components/thermostat/ecobee.py
Class Name:
Method Name: setup_platform