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..f4eb1c4 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 wireless mode `11NAHT20` + ## [0.6.10] & [0.6.11] - 2026-07-05 ### Added 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()) ``` 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" 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