diff --git a/tests/test_maintenance.py b/tests/test_maintenance.py index 223cd60..f5f7ff6 100644 --- a/tests/test_maintenance.py +++ b/tests/test_maintenance.py @@ -59,8 +59,7 @@ class TestMaintenance(UptimeKumaTestCase): monitor_id = self.add_monitor(monitor_name) monitors = [ { - "id": monitor_id, - "name": monitor_name + "id": monitor_id }, ] r = self.api.add_monitor_maintenance(maintenance_id, monitors) @@ -76,8 +75,7 @@ class TestMaintenance(UptimeKumaTestCase): status_page_id = self.add_status_page(status_page_title) status_pages = [ { - "id": status_page_id, - "name": status_page_title + "id": status_page_id } ] r = self.api.add_status_page_maintenance(maintenance_id, status_pages) diff --git a/uptime_kuma_api/api.py b/uptime_kuma_api/api.py index 9912dd3..f3c0941 100644 --- a/uptime_kuma_api/api.py +++ b/uptime_kuma_api/api.py @@ -3521,12 +3521,10 @@ class UptimeKumaApi(object): >>> monitors = [ ... { - ... "id": 1, - ... "name": "monitor 1" + ... "id": 1 ... }, ... { - ... "id": 2, - ... "name": "monitor 2" + ... "id": 2 ... } ... ] >>> api.add_monitor_maintenance(1, monitors) @@ -3575,12 +3573,10 @@ class UptimeKumaApi(object): >>> status_pages = [ ... { - ... "id": 1, - ... "name": "status page 1" + ... "id": 1 ... }, ... { - ... "id": 2, - ... "name": "status page 2" + ... "id": 2 ... } ... ] >>> api.add_status_page_maintenance(1, status_pages)