diff --git a/server/notification-providers/home-assistant.js b/server/notification-providers/home-assistant.js index 285989ee..6b950476 100644 --- a/server/notification-providers/home-assistant.js +++ b/server/notification-providers/home-assistant.js @@ -11,7 +11,7 @@ class HomeAssistant extends NotificationProvider { try { await axios.post( - `${notification.homeAssistantUrl}/api/services/notify/${notificationService}`, + `${notification.homeAssistantUrl.trim().replace(/\/*$/, "")}/api/services/notify/${notificationService}`, { title: "Uptime Kuma", message,