'Initialize the service.'

def __init__(self, hass, resource, method, message_param_name, title_param_name, target_param_name, data, data_template):

    self._resource = resource
    self._hass = hass
    self._method = method.upper()
    self._message_param_name = message_param_name
    self._title_param_name = title_param_name
    self._target_param_name = target_param_name
    self._data = data
    self._data_template = data_template
