Skip to content

Commit 75c569b

Browse files
authored
Add 11NAHT20 mode (#261)
1 parent ee20f1a commit 75c569b

6 files changed

Lines changed: 14 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ default_language_version:
55
repos:
66
# Run manually in CI skipping the branch checks
77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: v0.16.4
8+
rev: v0.16.6
99
hooks:
1010
- id: ruff
1111
name: "Ruff check"
@@ -56,7 +56,7 @@ repos:
5656
- id: yamllint
5757
name: "YAML linting"
5858
- repo: https://github.com/shellcheck-py/shellcheck-py
59-
rev: v0.11.0.1
59+
rev: v0.11.0.1-1
6060
hooks:
6161
- id: shellcheck
6262
name: "Shell checking"

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.6.12] - 2026-09-06
6+
7+
### Added
8+
9+
- v6 wireless mode `11NAHT20`
10+
511
## [0.6.10] & [0.6.11] - 2026-07-05
612

713
### Added

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ from airos.airos6 import AirOS6, AirOS6Data
6363
from airos.airos8 import AirOS8, AirOS8Data
6464
from airos.helpers import DetectDeviceData, async_get_firmware_data
6565

66+
6667
async def main():
6768
"""Main function to demonstrate library usage."""
6869
# Create an aiohttp session with SSL verification disabled.
@@ -75,7 +76,7 @@ async def main():
7576
"host": "192.168.1.2",
7677
"username": "ubnt",
7778
"password": "password",
78-
"session": session
79+
"session": session,
7980
}
8081

8182
device_data: DetectDeviceData = await async_get_firmware_data(**conn_data)
@@ -88,7 +89,6 @@ async def main():
8889
# Initialize the AirOS device object.
8990
airos_device = airos_class(**conn_data)
9091

91-
9292
try:
9393
# Step 1: Login to the device.
9494
login_result = await airos_device.login()
@@ -120,6 +120,7 @@ async def main():
120120
# Ensure the aiohttp session is closed properly.
121121
await session.close()
122122

123+
123124
if __name__ == "__main__":
124125
asyncio.run(main())
125126
```

airos/data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ class IeeeMode(Enum):
149149
_11NAHT40MINUS = "11NAHT40MINUS" # On a v6 XM
150150
_11NAHT40PLUS = "11NAHT40PLUS" # On a v6 XW
151151
_11NGHT20 = "11NGHT20" # On a v6 XM 900 MHz device (NanoStation loco M900)
152+
_11NAHT20 = "11NAHT20" # On a PowerBeam M5 400 running v6
152153
# More to be added when known
153154

154155

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.6.11"
7+
version = "0.6.12"
88
license = "MIT"
99
description = "Ubiquiti airOS module(s) for Python 3."
1010
readme = "README.md"

requirements-test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ruff==0.16.4
1+
ruff==0.16.6
22
pytest==9.1.1
33
pytest-asyncio==1.4.0
44
pytest-cov==7.1.0

0 commit comments

Comments
 (0)