a91163877f35db5e456fa4b66c1f048ced947ba9,homeassistant/components/script.py,Script,_call_service,#Script#Any#,195

Before Change


        self._last_action = action.get(CONF_ALIAS, conf_service)
        _LOGGER.info("Executing script %s step %s", self._name,
                     self._last_action)
        domain, service = split_entity_id(conf_service)
        data = action.get(CONF_SERVICE_DATA, {})
        self.hass.services.call(domain, service, data, True)

    def _fire_event(self, action):

After Change


         Calls the service specified in the action. 
        // Backwards compatibility
        if CONF_SERVICE not in action and CONF_SERVICE_OLD in action:
            action[CONF_SERVICE] = action[CONF_SERVICE_OLD]

        if CONF_SERVICE_DATA not in action and CONF_SERVICE_DATA_OLD in action:
            action[CONF_SERVICE_DATA] = action[CONF_SERVICE_DATA_OLD]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: a91163877f35db5e456fa4b66c1f048ced947ba9
Time: 2016-01-21
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/script.py
Class Name: Script
Method Name: _call_service


Project Name: home-assistant/home-assistant
Commit Name: 0fc3d359cbad3603b566a68ebe1a773d173491d6
Time: 2014-01-23
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/components/light.py
Class Name:
Method Name: turn_off


Project Name: home-assistant/home-assistant
Commit Name: 0fc3d359cbad3603b566a68ebe1a773d173491d6
Time: 2014-01-23
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/components/light.py
Class Name:
Method Name: turn_on