30f74bb3caf84883ca2c2e0bfc51131a1e731ffd,homeassistant/components/verisure.py,,setup,#Any#Any#,33
Before Change
if not HUB.login():
return False
for comp_name, discovery in ((("sensor", DISCOVER_SENSORS),
("switch", DISCOVER_SWITCHES),
("alarm_control_panel", DISCOVER_ALARMS),
("lock", DISCOVER_LOCKS))):
component = get_component(comp_name)
bootstrap.setup_component(hass, component.DOMAIN, config)
hass.bus.fire(EVENT_PLATFORM_DISCOVERED,
{ATTR_SERVICE: discovery,
ATTR_DISCOVERED: {}})
return True
// pylint: disable=too-many-instance-attributes
After Change
if not HUB.login():
return False
for component in ("sensor", "switch", "alarm_control_panel", "lock"):
discovery.load_platform(hass, component, DOMAIN, None, config)
return True
// pylint: disable=too-many-instance-attributes
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: home-assistant/home-assistant
Commit Name: 30f74bb3caf84883ca2c2e0bfc51131a1e731ffd
Time: 2016-06-11
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/verisure.py
Class Name:
Method Name: setup
Project Name: home-assistant/home-assistant
Commit Name: 30f74bb3caf84883ca2c2e0bfc51131a1e731ffd
Time: 2016-06-11
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/mysensors.py
Class Name:
Method Name: setup
Project Name: home-assistant/home-assistant
Commit Name: 30f74bb3caf84883ca2c2e0bfc51131a1e731ffd
Time: 2016-06-11
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/vera.py
Class Name:
Method Name: setup