Skip to content

Commit

Permalink
Merge pull request #6 from ribbal/fix_formatting
Browse files Browse the repository at this point in the history
Fix message formatting
  • Loading branch information
t0mer authored Aug 13, 2024
2 parents d671add + 0022a15 commit 38de319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/greenapi/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 38de319

Please sign in to comment.