Skip to content

Commit 3c683b4

Browse files
authored
Merge pull request #77 from CoMPaTech/antenna_and_nol_optional
## Bug Fixes Improved compatibility with Prism and LiteBeam devices on firmware 8.7.8 by allowing antenna gain and DFS/NOL-related values to be optional, preventing errors when absent.
2 parents 4f55c35 + f1e8746 commit 3c683b4

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

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.4.3] - 2025-08-22
6+
7+
### Changed
8+
9+
- Made antenna_gain and nol_* optional for Prism and LiteBeam 8.7.8 support
10+
511
## [0.4.2] - 2025-08-17
612

713
### Changed

airos/data.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ class Remote(AirOSDataClass):
368368
tx_ratedata: list[int]
369369
tx_bytes: int
370370
rx_bytes: int
371-
antenna_gain: int
372371
cable_loss: int
373372
ethlist: list[EthList]
374373
ipaddr: list[str]
@@ -383,6 +382,7 @@ class Remote(AirOSDataClass):
383382
gps: GPSData | None = (
384383
None # Reported NanoStation 5AC 8.7.18 without GPS Core 150491
385384
)
385+
antenna_gain: int | None = None # Reported on Prism 6.3.5? and LiteBeam 8.7.8
386386

387387
@classmethod
388388
def __pre_deserialize__(cls, d: dict[str, Any]) -> dict[str, Any]:
@@ -454,7 +454,6 @@ class Wireless(AirOSDataClass):
454454
compat_11n: int
455455
hide_essid: int
456456
apmac: str
457-
antenna_gain: int
458457
frequency: int
459458
center1_freq: int
460459
dfs: int
@@ -467,8 +466,6 @@ class Wireless(AirOSDataClass):
467466
chanbw: int
468467
rx_chainmask: int
469468
tx_chainmask: int
470-
nol_state: int
471-
nol_timeout: int
472469
cac_state: int
473470
cac_timeout: int
474471
rx_idx: int
@@ -482,6 +479,9 @@ class Wireless(AirOSDataClass):
482479
sta: list[Station]
483480
sta_disconnected: list[Disconnected]
484481
mode: WirelessMode | None = None # Investigate further (see WirelessMode in Remote)
482+
nol_state: int | None = None # Reported on Prism 6.3.5? and LiteBeam 8.7.8
483+
nol_timeout: int | None = None # Reported on Prism 6.3.5? and LiteBeam 8.7.8
484+
antenna_gain: int | None = None # Reported on Prism 6.3.5? and LiteBeam 8.7.8
485485

486486
@classmethod
487487
def __pre_deserialize__(cls, d: dict[str, Any]) -> dict[str, Any]:

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

0 commit comments

Comments
 (0)