e4c5108c9deb8ecdf296f7c8da5f9dc26789d930,homeassistant/components/automation/__init__.py,,setup,#Any#Any#,37

Before Change


        if CONF_CONDITION in p_config or CONF_CONDITION_TYPE in p_config:
            action = _process_if(hass, config, p_config, action)

            if action is None:
                continue

        _process_trigger(hass, config, p_config.get(CONF_TRIGGER, []), name,
                         action)

    return True

After Change


        elif isinstance(config[config_key], list):
            list_no = 0
            for config_block in config[config_key]:
                name = config_block.get(CONF_ALIAS, "{}, {}".format(config_key, list_no))
                list_no += 1
                config_block = _migrate_old_config(config_block)
                _setup_automation(hass, config_block, name, config)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: home-assistant/home-assistant
Commit Name: e4c5108c9deb8ecdf296f7c8da5f9dc26789d930
Time: 2015-09-18
Author: stefan.jonasson@sitedirect.se
File Name: homeassistant/components/automation/__init__.py
Class Name:
Method Name: setup


Project Name: home-assistant/home-assistant
Commit Name: 68c1dd7cd47c516df765a1742a62abca5c3d5f83
Time: 2015-09-14
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/automation/__init__.py
Class Name:
Method Name: setup


Project Name: mlflow/mlflow
Commit Name: 8a9b5f1ef494f531dbf88896f1048cb855c0e078
Time: 2019-05-30
Author: 33237569+tomasatdatabricks@users.noreply.github.com
File Name: examples/multistep_workflow/main.py
Class Name:
Method Name: _already_ran