e961dd5f95aba15994be339bfa24d95b844a3f24,homeassistant/components/device_tracker/actiontec.py,ActiontecDeviceScanner,_update_info,#ActiontecDeviceScanner#,83

Before Change


            for client in exclude_target_list:
                if client in actiontec_data:
                    actiontec_data.pop(client)
            for name, data in actiontec_data.items():
                if data["timevalid"] > 0:
                    device = Device(data["mac"], name, now)
                    self.last_results.append(device)
            self.last_results.extend(exclude_targets)
            _LOGGER.info("actiontec scan successful")
            return True

After Change


            actiontec_data = self.get_actiontec_data()
            if not actiontec_data:
                return False
            self.last_results = [Device(data["mac"], name, now)
                                 for name, data in actiontec_data.items()
                                 if data["timevalid"] > -60]
            _LOGGER.info("actiontec scan successful")
            return True

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: home-assistant/home-assistant
Commit Name: e961dd5f95aba15994be339bfa24d95b844a3f24
Time: 2015-10-30
Author: nkgilley@gmail.com
File Name: homeassistant/components/device_tracker/actiontec.py
Class Name: ActiontecDeviceScanner
Method Name: _update_info


Project Name: home-assistant/home-assistant
Commit Name: 4ccedca3e5cbd98ad8149d5ebed45d37ad09225a
Time: 2015-09-12
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/device_tracker/__init__.py
Class Name: DeviceTracker
Method Name: __init__


Project Name: home-assistant/home-assistant
Commit Name: bfb5089ed59f1df8cf53a3b517ac6b091f539a26
Time: 2015-03-08
Author: andyt05@gmail.com
File Name: homeassistant/components/device_tracker/nmap_tracker.py
Class Name: NmapDeviceScanner
Method Name: _update_info