a42288d056c6c4418856534c0dbacf2489a0a6c8,homeassistant/components/alarm_control_panel/simplisafe.py,,setup_platform,#Any#Any#Any#Any#,38
Before Change
else:
message = "Failed to log into SimpliSafe. Check credentials."
_LOGGER.error(message)
hass.components.persistent_notification.create(
message,
title=NOTIFICATION_TITLE,
notification_id=NOTIFICATION_ID)
return False
def logout(event):
Logout of the SimpliSafe API.
After Change
username = config.get(CONF_USERNAME)
password = config.get(CONF_PASSWORD)
try:
simplisafe = SimpliSafeApiInterface(username, password)
except SimpliSafeAPIException:
_LOGGER.error("Failed to setup SimpliSafe")
return
systems = []
for system in simplisafe.get_systems():
systems.append(SimpliSafeAlarm(system, name, code))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: home-assistant/home-assistant
Commit Name: a42288d056c6c4418856534c0dbacf2489a0a6c8
Time: 2018-07-19
Author: william.joseph.scanlon@gmail.com
File Name: homeassistant/components/alarm_control_panel/simplisafe.py
Class Name:
Method Name: setup_platform
Project Name: studioml/studio
Commit Name: 1674f9d36caaaa6bcfd4f40a414b591706b51374
Time: 2017-08-02
Author: peter.zhokhov@sentient.ai
File Name: studio/gcloud_artifact_store.py
Class Name: GCloudArtifactStore
Method Name: __init__
Project Name: comic/grand-challenge.org
Commit Name: f8f5eb96468aa94acad1c085fc9a8c80d7b6db8f
Time: 2017-11-15
Author: pkcakeout@gmail.com
File Name: app/evaluation/widgets/uploader.py
Class Name: AjaxUploadWidget
Method Name: handle_ajax