def send_tasker_service(service): """Service to open url on devices.""" send_notification(api_key=api_key, device_id=device_id, device_ids=device_ids, device_names=device_names, text=service.data.get('command'))
def send_tasker_service(service: ServiceCall) -> None: """Service to open url on devices.""" send_notification( api_key=api_key, device_id=device_id, device_ids=device_ids, device_names=device_names, text=service.data.get("command"), )
def send_message(self, message="", **kwargs): """Send a message to a user.""" from pyjoin import send_notification title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT) data = kwargs.get(ATTR_DATA) or {} send_notification( device_id=self._device_id, device_ids=self._device_ids, device_names=self._device_names, text=message, title=title, icon=data.get('icon'), smallicon=data.get('smallicon'), vibration=data.get('vibration'), api_key=self._api_key)
def send_message(self, message="", **kwargs): """Send a message to a user.""" from pyjoin import send_notification title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT) data = kwargs.get(ATTR_DATA) or {} send_notification(device_id=self._device_id, text=message, title=title, icon=data.get('icon'), smallicon=data.get('smallicon'), api_key=self._api_key)
def send_message(self, message="", **kwargs): """Send a message to a user.""" from pyjoin import send_notification title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT) data = kwargs.get(ATTR_DATA) or {} send_notification(device_id=self._device_id, device_ids=self._device_ids, device_names=self._device_names, text=message, title=title, icon=data.get('icon'), smallicon=data.get('smallicon'), image=data.get('image'), sound=data.get('sound'), notification_id=data.get('notification_id'), url=data.get('url'), tts=data.get('tts'), tts_language=data.get('tts_language'), vibration=data.get('vibration'), api_key=self._api_key)
def send_message(self, message="", **kwargs): """Send a message to a user.""" title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT) data = kwargs.get(ATTR_DATA) or {} send_notification( device_id=self._device_id, device_ids=self._device_ids, device_names=self._device_names, text=message, title=title, icon=data.get("icon"), smallicon=data.get("smallicon"), image=data.get("image"), sound=data.get("sound"), notification_id=data.get("notification_id"), url=data.get("url"), tts=data.get("tts"), tts_language=data.get("tts_language"), vibration=data.get("vibration"), actions=data.get("actions"), api_key=self._api_key, )
def send_tasker_service(service): """Service to open url on devices.""" send_notification(device_id=device_id, text=service.data.get('command'), api_key=api_key)