'Send a message to a user.'

def send_message(self, message='', **kwargs):

    from pushover import RequestError
    data = dict((kwargs.get(ATTR_DATA) or {}))
    data['title'] = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
    targets = kwargs.get(ATTR_TARGET)
    if (not isinstance(targets, list)):
        targets = [targets]
    for target in targets:
        if (target is not None):
            data['device'] = target
        try:
            self.pushover.send_message(message, **data)
        except ValueError as val_err:
            _LOGGER.error(str(val_err))
        except RequestError:
            _LOGGER.exception('Could    not    send    pushover    notification')
