From d671adda0747d25e9908d1332da5c181a2c3cc64 Mon Sep 17 00:00:00 2001 From: Tomer Klein Date: Tue, 13 Aug 2024 12:34:11 +0300 Subject: [PATCH] Update notify.py --- custom_components/greenapi/notify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/greenapi/notify.py b/custom_components/greenapi/notify.py index 6fda492..84e3a24 100644 --- a/custom_components/greenapi/notify.py +++ b/custom_components/greenapi/notify.py @@ -32,7 +32,7 @@ def get_service(hass, config, discovery_info=None): class GreenAPINotificationService(BaseNotificationService): - def __init__(self, title, token,instance_id, target, linkPreview=False): + def __init__(self, title, token,instance_id, target): """Initialize the service.""" self._title = title self._token = token @@ -62,6 +62,6 @@ def send_message(self, message="", **kwargs): file_name = basename(url.path) send_file_by_url_response = self._greenAPI.sending.sendFileByUrl(target, url_file, file_name, caption=message) else: - self._greenAPI.sending.sendMessage(target, message) + self._greenAPI.sending.sendMessage(target, message, linkPreview=False) except Exception as e: _LOGGER.error("Sending message to %s: has failed with the following error %s", kwargs.get(ATTR_TARGET)[0] ,str(e))