Notifications - Small fix for notification format handling, enabling HTML Color for {{diff_removed}} and {{diff_added}} (#3508)

This commit is contained in:
dgtlmoon
2025-10-16 13:13:15 +02:00
committed by GitHub
parent 6f926ed595
commit 4f83164544
2 changed files with 3 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ def process_notification(n_object: NotificationContextData, datastore):
# Get the notification body from datastore
n_body = jinja_render(template_str=n_object.get('notification_body', ''), **notification_parameters)
if n_object.get('notification_format', '').startswith('HTML'):
if n_format.lower().startswith('html'):
n_body = n_body.replace("\n", '<br>')
n_title = jinja_render(template_str=n_object.get('notification_title', ''), **notification_parameters)