Example #1
0
 def send_sms_service(service):
     """Service to send sms from devices."""
     send_sms(device_id=device_id,
              device_ids=device_ids,
              device_names=device_names,
              sms_number=service.data.get('number'),
              sms_text=service.data.get('message'),
              api_key=api_key)
Example #2
0
 def send_sms_service(service):
     """Service to send sms from devices."""
     send_sms(
         device_id=device_id,
         sms_number=service.data.get("number"),
         sms_text=service.data.get("message"),
         api_key=api_key,
     )
Example #3
0
 def send_sms_service(service):
     """Service to send sms from devices."""
     send_sms(device_id=device_id,
              device_ids=device_ids,
              device_names=device_names,
              sms_number=service.data.get('number'),
              sms_text=service.data.get('message'),
              api_key=api_key)
Example #4
0
 def send_sms_service(service: ServiceCall) -> None:
     """Service to send sms from devices."""
     send_sms(
         device_id=device_id,
         device_ids=device_ids,
         device_names=device_names,
         sms_number=service.data.get("number"),
         sms_text=service.data.get("message"),
         api_key=api_key,
     )