aaf75c7e45ccb1504363059a1b30e7d49b5c5e5e,homeassistant/components/notify/googlevoice.py,GoogleVoiceSMSNotificationService,send_message,#GoogleVoiceSMSNotificationService#Any#,44
Before Change
resp = self.voice.login(self.username, self.password)
resp = self.voice.send_sms(self.number, message)
if resp.status_code == 400:
_LOGGER.error("At least one parameter is missing")
elif resp.status_code == 402:
_LOGGER.error("Too much SMS send in a few time")
elif resp.status_code == 403:
_LOGGER.error("Wrong Username/Password")
elif resp.status_code == 500:
_LOGGER.error("Server error, try later")
After Change
targets = kwargs.get(ATTR_TARGET)
self.voice.login(self.username, self.password)
for target in targets:
resp = self.voice.send_sms(target, message)
self.voice.logout()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: home-assistant/home-assistant
Commit Name: aaf75c7e45ccb1504363059a1b30e7d49b5c5e5e
Time: 2016-01-29
Author: scanlonw1@gmail.com
File Name: homeassistant/components/notify/googlevoice.py
Class Name: GoogleVoiceSMSNotificationService
Method Name: send_message
Project Name: evilsocket/pwnagotchi
Commit Name: 346773f7902b45280568cf1e8913e7aad815c8c9
Time: 2019-11-05
Author: 33197631+dadav@users.noreply.github.com
File Name: pwnagotchi/plugins/default/auto-backup.py
Class Name: AutoBackup
Method Name: on_loaded
Project Name: facebook/FAI-PEP
Commit Name: 20e169d51e180628b7af8149776f92ebb0c3b257
Time: 2018-03-05
Author: feisun@fb.com
File Name: benchmarking/git_driver.py
Class Name: ExecutablesBuilder
Method Name: _buildExecutables