Merge pull request #3283 from lassebm/ha-strip-trailing-slashes

Strip trailing slashes to avoid 404 from Home Assistant's API endpoint
pull/3306/head
Louis Lam 1 year ago committed by GitHub
commit bdcbd6389b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,7 +11,7 @@ class HomeAssistant extends NotificationProvider {
try { try {
await axios.post( await axios.post(
`${notification.homeAssistantUrl}/api/services/notify/${notificationService}`, `${notification.homeAssistantUrl.trim().replace(/\/*$/, "")}/api/services/notify/${notificationService}`,
{ {
title: "Uptime Kuma", title: "Uptime Kuma",
message, message,

Loading…
Cancel
Save