369e6a3905a6610377797ec8cdc64e7a42f436aa,homeassistant/components/totalconnect/alarm_control_panel.py,,setup_platform,#Any#Any#Any#Any#,26
Before Change
Set up a TotalConnect control panel.
name = config.get(CONF_NAME)
username = config.get(CONF_USERNAME)
password = config.get(CONF_PASSWORD)
total_connect = TotalConnect(name, username, password)
add_entities([total_connect], True)
class TotalConnect(alarm.AlarmControlPanel):
After Change
if discovery_info is None:
return
alarms = []
client = hass.data[TOTALCONNECT_DOMAIN].client
for location in client.locations:
location_id = location.get("LocationID")
name = location.get("LocationName")
alarms.append(TotalConnectAlarm(name, location_id, client))
add_entities(alarms)
class TotalConnectAlarm(alarm.AlarmControlPanel):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
Instances
Project Name: home-assistant/home-assistant
Commit Name: 369e6a3905a6610377797ec8cdc64e7a42f436aa
Time: 2019-07-14
Author: austin@mroczek.org
File Name: homeassistant/components/totalconnect/alarm_control_panel.py
Class Name:
Method Name: setup_platform
Project Name: ray-project/ray
Commit Name: c9f13b0833ee499a074f15192a6eaf7a6513a296
Time: 2020-08-13
Author: ekhliang@gmail.com
File Name: python/ray/worker.py
Class Name:
Method Name: get_gpu_ids
Project Name: kengz/SLM-Lab
Commit Name: aa4ae658489c919dbca4141c7498b05ac0cac6d8
Time: 2019-05-25
Author: kengzwl@gmail.com
File Name: slm_lab/agent/__init__.py
Class Name: AgentSpace
Method Name: act
Project Name: mynlp/ccg2lambda
Commit Name: 9ebe118cd1db05b88942e3eac3a9bfd951c446ae
Time: 2016-11-30
Author: pascual@nii.ac.jp
File Name: scripts/semantic_index.py
Class Name: SemanticIndex
Method Name: get_semantic_representation