9979a3266e0c9e527df11edfa680683bcfa0f2a5,homeassistant/remote.py,,call_service,#Any#Any#Any#Any#Any#,419
Before Change
def call_service(api, domain, service, service_data=None, logger=None):
Calls a service at the remote API.
event_data = service_data or {}
event_data[ha.ATTR_DOMAIN] = domain
event_data[ha.ATTR_SERVICE] = service
fire_event(api, ha.EVENT_CALL_SERVICE, event_data, logger)
After Change
URL_API_SERVICES_SERVICE.format(domain, service),
service_data)
if req.status_code != 200 and logger:
logger.error(
"Error calling service: {} - {}".format(
req.status_code, req.text))
except ha.HomeAssistantError:
if logger:
logger.exception("Error setting state to server")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: home-assistant/home-assistant
Commit Name: 9979a3266e0c9e527df11edfa680683bcfa0f2a5
Time: 2014-10-19
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/remote.py
Class Name:
Method Name: call_service
Project Name: home-assistant/home-assistant
Commit Name: 734bd75fd33e48464c01f738b8072406dc0e84d8
Time: 2016-11-06
Author: marhje52@kth.se
File Name: homeassistant/components/mysensors.py
Class Name:
Method Name: setup
Project Name: home-assistant/home-assistant
Commit Name: d16bc632da35a31957ba3ac399dab4769591af17
Time: 2017-03-07
Author: appzer@users.noreply.github.com
File Name: homeassistant/components/notify/pushsafer.py
Class Name: PushsaferNotificationService
Method Name: send_message