Skip to content

Commit c8160d7

Browse files
committed
Remove deprecated verify_ssl parameter
1 parent abba63a commit c8160d7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pyuptimekuma/decorator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ async def wrapper(*args, **kwargs):
3232
url=url,
3333
timeout=aiohttp.ClientTimeout(total=10),
3434
auth=aiohttp.BasicAuth(client._username, client._password),
35-
verify_ssl=client._verify_ssl,
3635
)
3736

3837
if request.status != 200:

pyuptimekuma/uptimekuma.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
class UptimeKuma:
99
"""This class is used to get information from Uptime Kuma."""
1010

11-
def __init__(self, session: ClientSession, base_url: str, username: str, password: str, verify_ssl=True) -> None:
11+
def __init__(self, session: ClientSession, base_url: str, username: str, password: str) -> None:
1212
"""Initialize"""
1313
self.monitors = []
1414
self._base_url = base_url
1515
self._username = username
1616
self._password = password
17-
self._verify_ssl = verify_ssl
1817
self._session: ClientSession = session
1918

2019
@api_request("/metrics")

0 commit comments

Comments
 (0)