Skip to content

Commit

Permalink
Merge pull request louislam#3283 from lassebm/ha-strip-trailing-slashes
Browse files Browse the repository at this point in the history
Strip trailing slashes to avoid 404 from Home Assistant's API endpoint
  • Loading branch information
louislam authored Jun 24, 2023
2 parents 4e420ee + a00561f commit bdcbd63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/notification-providers/home-assistant.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bdcbd63

Please sign in to comment.