4fa379419d9700fb179a9d3440f4e618d8fe50ec,homeassistant/components/media_player/sonos.py,,setup_platform,#Any#Any#Any#Any#,36
Before Change
Sets up the Sonos platform.
import soco
add_devices(SonosDevice(hass, p) for p in soco.discover())
return True
After Change
import soco
players = soco.discover()
if not players:
_LOGGER.warning("No Sonos speakers found. Disabling: " + __name__)
return False
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: home-assistant/home-assistant
Commit Name: 4fa379419d9700fb179a9d3440f4e618d8fe50ec
Time: 2015-09-12
Author: jeffschroeder@computer.org
File Name: homeassistant/components/media_player/sonos.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: aa74c4e57a793c1bc3eb61b1920486eba8e20cf4
Time: 2015-09-11
Author: rhooper@toybox.ca
File Name: homeassistant/components/media_player/sonos.py
Class Name:
Method Name: setup_platform
Project Name: biolab/orange3
Commit Name: b9b9d291a24df4bd691ac3c9b10ca360395e1810
Time: 2014-09-05
Author: anze.staric@gmail.com
File Name: Orange/tests/__init__.py
Class Name:
Method Name: suite
Project Name: home-assistant/home-assistant
Commit Name: dee6355cc59d7d84f8f7f3a4f1a8dc9b13f9d99e
Time: 2016-05-21
Author: Daniel.Kemp@especiallyrelative.net
File Name: homeassistant/components/media_player/onkyo.py
Class Name:
Method Name: setup_platform