From c8529d65c3fc90493f793d2f083ede29d4064961 Mon Sep 17 00:00:00 2001 From: lucasheld Date: Thu, 6 Oct 2022 19:01:51 +0200 Subject: [PATCH] feat: add support for uptime kuma 1.18.3 --- uptime_kuma_api/notification_providers.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/uptime_kuma_api/notification_providers.py b/uptime_kuma_api/notification_providers.py index 3f7da9f..cb1594e 100644 --- a/uptime_kuma_api/notification_providers.py +++ b/uptime_kuma_api/notification_providers.py @@ -38,12 +38,13 @@ class NotificationType(str, Enum): LINENOTIFY = "LineNotify" BARK = "Bark" GOALERT = "GoAlert" - NTFY = "ntfy" OCTOPUSH = "octopush" SERVERCHAN = "ServerChan" SMSMANAGER = "SMSManager" SQUADCAST = "squadcast" TEAMS = "teams" + FREEMOBILE = "FreeMobile" + NTFY = "ntfy" notification_provider_options = { @@ -237,13 +238,6 @@ notification_provider_options = { "goAlertBaseURL", "goAlertToken", ], - NotificationType.NTFY: [ - "ntfyusername", - "ntfypassword", - "ntfytopic", - "ntfyPriority", - "ntfyserverurl", - ], NotificationType.OCTOPUSH: [ "octopushVersion", "octopushAPIKey", @@ -271,6 +265,17 @@ notification_provider_options = { NotificationType.TEAMS: [ "webhookUrl", ], + NotificationType.FREEMOBILE: [ + "freemobileUser", + "freemobilePass", + ], + NotificationType.NTFY: [ + "ntfyusername", + "ntfypassword", + "ntfytopic", + "ntfyPriority", + "ntfyserverurl", + ], } notification_provider_conditions = {