feat: add support for uptime kuma 1.18.3

This commit is contained in:
lucasheld 2022-10-06 19:01:51 +02:00
parent b4aa04bec5
commit c8529d65c3

View file

@ -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 = {