From 52d33d8751c086ca7e98fed6b0782e230259cdc3 Mon Sep 17 00:00:00 2001 From: lucasheld Date: Fri, 7 Oct 2022 14:32:52 +0200 Subject: [PATCH] fix: remove required notification provider args check --- uptime_kuma_api/api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/uptime_kuma_api/api.py b/uptime_kuma_api/api.py index a87f8f0..257ea1e 100644 --- a/uptime_kuma_api/api.py +++ b/uptime_kuma_api/api.py @@ -247,9 +247,10 @@ def _check_arguments_notification(kwargs): required_args = ["type", "name"] _check_missing_arguments(required_args, kwargs) - type_ = kwargs["type"] - required_args = notification_provider_options[type_] - _check_missing_arguments(required_args, kwargs) + # TODO: collect required notification args from /src/components/notifications/* + # type_ = kwargs["type"] + # required_args = notification_provider_options[type_] + # _check_missing_arguments(required_args, kwargs) _check_argument_conditions(notification_provider_conditions, kwargs)