From 88bda372b5c2a5c1228c66f6472f667cf112b0b7 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Sun, 6 Sep 2026 18:34:01 +0000 Subject: [PATCH 1/3] Add 11NAHT20 mode --- .pre-commit-config.yaml | 4 ++-- CHANGELOG.md | 6 ++++++ airos/data.py | 1 + pyproject.toml | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 63a2803..05c1c6d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ default_language_version: repos: # Run manually in CI skipping the branch checks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.4 + rev: v0.16.6 hooks: - id: ruff name: "Ruff check" @@ -56,7 +56,7 @@ repos: - id: yamllint name: "YAML linting" - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.11.0.1 + rev: v0.11.0.1-1 hooks: - id: shellcheck name: "Shell checking" diff --git a/CHANGELOG.md b/CHANGELOG.md index 35521f1..67120a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [0.6.12] - 2026-09-06 + +### Added + +- v6 wirless mode `11NAHT20` + ## [0.6.10] & [0.6.11] - 2026-07-05 ### Added diff --git a/airos/data.py b/airos/data.py index ccf498a..86c00b4 100644 --- a/airos/data.py +++ b/airos/data.py @@ -149,6 +149,7 @@ class IeeeMode(Enum): _11NAHT40MINUS = "11NAHT40MINUS" # On a v6 XM _11NAHT40PLUS = "11NAHT40PLUS" # On a v6 XW _11NGHT20 = "11NGHT20" # On a v6 XM 900 MHz device (NanoStation loco M900) + _11NAHT20 = "11NAHT20" # On a PowerBeam M5 400 running v6 # More to be added when known diff --git a/pyproject.toml b/pyproject.toml index a5a3828..5600f11 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "airos" -version = "0.6.11" +version = "0.6.12" license = "MIT" description = "Ubiquiti airOS module(s) for Python 3." readme = "README.md" From 4b47a6368b81628ca73907aad398d6c89928be81 Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Sun, 6 Sep 2026 18:37:52 +0000 Subject: [PATCH 2/3] Ruff --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8213392..0b7b1cb 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ from airos.airos6 import AirOS6, AirOS6Data from airos.airos8 import AirOS8, AirOS8Data from airos.helpers import DetectDeviceData, async_get_firmware_data + async def main(): """Main function to demonstrate library usage.""" # Create an aiohttp session with SSL verification disabled. @@ -75,7 +76,7 @@ async def main(): "host": "192.168.1.2", "username": "ubnt", "password": "password", - "session": session + "session": session, } device_data: DetectDeviceData = await async_get_firmware_data(**conn_data) @@ -88,7 +89,6 @@ async def main(): # Initialize the AirOS device object. airos_device = airos_class(**conn_data) - try: # Step 1: Login to the device. login_result = await airos_device.login() @@ -120,6 +120,7 @@ async def main(): # Ensure the aiohttp session is closed properly. await session.close() + if __name__ == "__main__": asyncio.run(main()) ``` From 77041beca76e545e1b4f4dce48901b3cf50d0aeb Mon Sep 17 00:00:00 2001 From: Tom Scholten Date: Sun, 6 Sep 2026 18:48:21 +0000 Subject: [PATCH 3/3] Review comments --- CHANGELOG.md | 2 +- requirements-test.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67120a8..f4eb1c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ All notable changes to this project will be documented in this file. ### Added -- v6 wirless mode `11NAHT20` +- v6 wireless mode `11NAHT20` ## [0.6.10] & [0.6.11] - 2026-07-05 diff --git a/requirements-test.txt b/requirements-test.txt index d2e0424..a536c94 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,4 +1,4 @@ -ruff==0.16.4 +ruff==0.16.6 pytest==9.1.1 pytest-asyncio==1.4.0 pytest-cov==7.1.0