We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a483eac commit 2e280d4Copy full SHA for 2e280d4
1 file changed
sagemcom_api/client.py
@@ -8,6 +8,7 @@
8
import json
9
import math
10
import random
11
+from ssl import SSLContext
12
from types import TracebackType
13
from typing import Any
14
import urllib.parse
@@ -78,6 +79,7 @@ def __init__(
78
79
session: ClientSession | None = None,
80
ssl: bool | None = False,
81
verify_ssl: bool | None = True,
82
+ ssl_context: SSLContext | None = None
83
):
84
"""
85
Create a SagemCom client.
@@ -107,7 +109,8 @@ def __init__(
107
109
headers={"User-Agent": f"{DEFAULT_USER_AGENT}"},
108
110
timeout=ClientTimeout(DEFAULT_TIMEOUT),
111
connector=TCPConnector(
- verify_ssl=verify_ssl if verify_ssl is not None else True
112
+ verify_ssl=verify_ssl,
113
+ ssl_context=ssl_context
114
),
115
)
116
0 commit comments