db2cbf33c3172c889fcc70e95efb39bdd8d7e0f1,homeassistant/components/media_player/squeezebox.py,,setup_platform,#Any#Any#Any#Any#,65
Before Change
// pylint: disable=unused-argument
def setup_platform(hass, config, add_devices, discovery_info=None):
Sets up the squeezebox platform.
add_devices([
SqueezeBoxDevice(
config.get("name", "SqueezeBox"),
config.get("server"),
config.get("player"),
config.get("port", "9090"),
config.get("user", None),
config.get("password", None)
)])
// pylint: disable=too-many-instance-attributes
// pylint: disable=too-many-public-methods
After Change
// pylint: disable=unused-argument
def setup_platform(hass, config, add_devices, discovery_info=None):
Sets up the squeezebox platform.
if not config.get(CONF_HOST):
_LOGGER.error(
"Missing required configuration items in {}: {}".format(
DOMAIN, CONF_HOST))
return False
lms = LogitechMediaServer(
config.get(CONF_HOST),
config.get("port", "9090"),
config.get(CONF_USERNAME),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: home-assistant/home-assistant
Commit Name: db2cbf33c3172c889fcc70e95efb39bdd8d7e0f1
Time: 2015-08-05
Author: Per.J.Sandstrom@gmail.com
File Name: homeassistant/components/media_player/squeezebox.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: 10a2ecd1d61ae3d2355301096ba096dcf3e065ab
Time: 2018-08-14
Author: mail@fabian-affolter.ch
File Name: homeassistant/components/sensor/worldtidesinfo.py
Class Name:
Method Name: setup_platform
Project Name: home-assistant/home-assistant
Commit Name: d3d7d458e16f5b017d6be381999c663af3af328e
Time: 2016-02-11
Author: dsmith@danplanet.com
File Name: homeassistant/components/thermostat/honeywell.py
Class Name:
Method Name: setup_platform