Skip to content

Commit 92d698e

Browse files
authored
Merge pull request #11 from CoMPaTech/testing
Drop verify_ssl, leave it to the ingested session
2 parents 82c450c + f5f57cb commit 92d698e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

airos/airos8.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def __init__(
2323
password: str,
2424
session: aiohttp.ClientSession,
2525
use_ssl: bool = True,
26-
verify_ssl: bool = True,
2726
):
2827
"""Initialize AirOS8 class."""
2928
self.username = username
@@ -40,7 +39,6 @@ def __init__(
4039
self.base_url = f"{scheme}://{hostname}"
4140

4241
self.session = session
43-
self.verify_ssl = verify_ssl
4442

4543
self._login_url = f"{self.base_url}/api/auth" # AirOS 8
4644
self._status_cgi_url = f"{self.base_url}/status.cgi" # AirOS 8
@@ -92,7 +90,6 @@ async def login(self) -> bool:
9290
self._login_url,
9391
data=post_data,
9492
headers=login_request_headers,
95-
ssl=self.verify_ssl,
9693
) as response:
9794
if not response.cookies:
9895
logger.exception("Empty cookies after login, bailing out.")
@@ -191,7 +188,6 @@ async def status(self) -> dict:
191188
async with self.session.get(
192189
self._status_cgi_url,
193190
headers=authenticated_get_headers,
194-
ssl=self.verify_ssl,
195191
) as response:
196192
if response.status == 200:
197193
try:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "airos"
7-
version = "0.0.5"
7+
version = "0.0.6"
88
license = "MIT"
99
description = "Ubiquity airOS module(s) for Python 3."
1010
readme = "README.md"

0 commit comments

Comments
 (0)