From 0022a15636934c778ca17ad2c28e817301b117fa Mon Sep 17 00:00:00 2001 From: ribbal Date: Tue, 30 Jul 2024 11:51:47 +0100 Subject: [PATCH] fix message formatting --- custom_components/greenapi/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/greenapi/notify.py b/custom_components/greenapi/notify.py index e062d09..f2dde77 100644 --- a/custom_components/greenapi/notify.py +++ b/custom_components/greenapi/notify.py @@ -48,7 +48,7 @@ def send_message(self, message="", **kwargs): title = kwargs.get(ATTR_TITLE) if title is not None: title = f"*{title}*" - message = f"{title} \n {message}" + message = f"{title}\n{message}" data = kwargs.get(ATTR_DATA) target = kwargs.get(ATTR_TARGET)[0] if kwargs.get(ATTR_TARGET) is not None else self._target #Allow setting the target from either the service-call or the service config. Service call target can override the default config. _LOGGER.info(f"Sending message to {target}")