9f54bcc21b1744f2850a35e54903f3581d14badb,homeassistant/components/sensor/mysensors.py,,setup_platform,#Any#Any#Any#Any#,24

Before Change


    ]
    v_types = []
    for _, member in mysensors.CONST.SetReq.__members__.items():
        if all(test != member.value for test in not_v_types):
            v_types.append(member)

    @mysensors.mysensors_update
    def _sensor_update(gateway, port, devices, nid):
        Internal callback for sensor updates.
        return (s_types, v_types, MySensorsSensor, add_devices)

After Change


        mysensors.CONST.SetReq.V_LIGHT,
        mysensors.CONST.SetReq.V_LOCK_STATUS,
    ]
    if float(mysensors.VERSION) >= 1.5:
        s_types.extend([
            mysensors.CONST.Presentation.S_COLOR_SENSOR,
            mysensors.CONST.Presentation.S_MULTIMETER,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: home-assistant/home-assistant
Commit Name: 9f54bcc21b1744f2850a35e54903f3581d14badb
Time: 2015-12-23
Author: marhje52@kth.se
File Name: homeassistant/components/sensor/mysensors.py
Class Name:
Method Name: setup_platform


Project Name: probcomp/bayeslite
Commit Name: 671ed2bdfa75d7fe2bebe6f63eb928260e40b7af
Time: 2017-01-30
Author: curlette@mit.edu
File Name: src/guess.py
Class Name:
Method Name: keyable_p


Project Name: probcomp/bayeslite
Commit Name: d3037843a386cde8bbf080518b632d7fdddeb451
Time: 2015-07-07
Author: riastradh+probcomp@csail.mit.edu
File Name: src/bqlfn.py
Class Name:
Method Name: correlation_anovar2