c44397e2578bcf4b0b5291eb8e2c491c548360fe,homeassistant/components/binary_sensor/abode.py,,setup_platform,#Any#Any#Any#Any#,18

Before Change


    Set up a sensor for an Abode device.
    abode = hass.data[DATA_ABODE]

    device_types = map_abode_device_class().keys()

    sensors = []
    for sensor in abode.get_devices(type_filter=device_types):
        sensors.append(AbodeBinarySensor(abode, sensor))

After Change


        devices.append(AbodeQuickActionBinarySensor(
            data, automation, TIMELINE.AUTOMATION_EDIT_GROUP))

    data.devices.extend(devices)

    add_devices(devices)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: c44397e2578bcf4b0b5291eb8e2c491c548360fe
Time: 2017-09-18
Author: 1091741+MisterWil@users.noreply.github.com
File Name: homeassistant/components/binary_sensor/abode.py
Class Name:
Method Name: setup_platform


Project Name: kymatio/kymatio
Commit Name: 60c2e01bfc93bc01da21b79ebe9f222e601e1931
Time: 2020-02-18
Author: janden@flatironinstitute.org
File Name: kymatio/scattering2d/core/scattering2d.py
Class Name:
Method Name: scattering2d


Project Name: allenai/allennlp
Commit Name: 0459261c388bec72937e0268c4316b85279d0bac
Time: 2018-09-24
Author: kl2806@columbia.edu
File Name: allennlp/semparse/contexts/sql_table_context.py
Class Name: SqlTableContext
Method Name: initialize_grammar_str