1d615ea6c3a5f9b3ae6481b827919f04f23c09ce,homeassistant/components/notify/mysensors.py,MySensorsNotificationService,send_message,#MySensorsNotificationService#Any#,57

Before Change


        Send a message to a user.
        target_devices = kwargs.get(ATTR_TARGET)
        devices = []
        for gw_devs in self.platform_devices:
            for device in gw_devs.values():
                if target_devices is None or device.name in target_devices:
                    devices.append(device)

        for device in devices:
            device.send_msg(message)

After Change


    def send_message(self, message="", **kwargs):
        Send a message to a user.
        target_devices = kwargs.get(ATTR_TARGET)
        devices = [device for device in self.devices.values()
                   if target_devices is None or device.name in target_devices]

        for device in devices:
            device.send_msg(message)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: home-assistant/home-assistant
Commit Name: 1d615ea6c3a5f9b3ae6481b827919f04f23c09ce
Time: 2017-08-25
Author: marhje52@kth.se
File Name: homeassistant/components/notify/mysensors.py
Class Name: MySensorsNotificationService
Method Name: send_message


Project Name: ray-project/ray
Commit Name: 9c5e5a97576f9bb8c7d7256cd566cdd4bcd63a3f
Time: 2020-08-18
Author: mfitton@berkeley.edu
File Name: python/ray/tests/test_metrics.py
Class Name:
Method Name: test_raylet_info_endpoint


Project Name: home-assistant/home-assistant
Commit Name: 8775c54d29a4adcc11a55c4a37db7da54eccc6e7
Time: 2017-08-25
Author: marhje52@kth.se
File Name: homeassistant/components/notify/mysensors.py
Class Name: MySensorsNotificationService
Method Name: send_message