From f5f57cb5c9111868b6508e4b01d2a9b6a55e484e Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Wed, 16 Jul 2025 00:22:27 +0200 Subject: [PATCH] Drop verify_ssl, leave it to the ingested session --- airos/airos8.py | 4 ---- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/airos/airos8.py b/airos/airos8.py index 229192b..9b4a59b 100644 --- a/airos/airos8.py +++ b/airos/airos8.py @@ -23,7 +23,6 @@ def __init__( password: str, session: aiohttp.ClientSession, use_ssl: bool = True, - verify_ssl: bool = True, ): """Initialize AirOS8 class.""" self.username = username @@ -40,7 +39,6 @@ def __init__( self.base_url = f"{scheme}://{hostname}" self.session = session - self.verify_ssl = verify_ssl self._login_url = f"{self.base_url}/api/auth" # AirOS 8 self._status_cgi_url = f"{self.base_url}/status.cgi" # AirOS 8 @@ -92,7 +90,6 @@ async def login(self) -> bool: self._login_url, data=post_data, headers=login_request_headers, - ssl=self.verify_ssl, ) as response: if not response.cookies: logger.exception("Empty cookies after login, bailing out.") @@ -191,7 +188,6 @@ async def status(self) -> dict: async with self.session.get( self._status_cgi_url, headers=authenticated_get_headers, - ssl=self.verify_ssl, ) as response: if response.status == 200: try: diff --git a/pyproject.toml b/pyproject.toml index f816fcd..4eacacc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "airos" -version = "0.0.5" +version = "0.0.6" license = "MIT" description = "Ubiquity airOS module(s) for Python 3." readme = "README.md"