Skip to content

Commit

Permalink
Update respondd_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
T0biii authored May 13, 2024
1 parent ad533fd commit 3b804ac
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions unifi_respondd/respondd_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,22 +308,26 @@ def getStatistics(self):
statistics = []
for ap in aps.accesspoints:
wirelessinfos = []
frequency5 = self.frequency_from_channel(ap.channel5)
wirelessinfos.append(
WirelessInfo(
frequency=frequency5,
rx=ap.rx_bytes5,
tx=ap.tx_bytes5,

if ap.channel5:
frequency5 = self.frequency_from_channel(ap.channel5)
wirelessinfos.append(
WirelessInfo(
frequency=frequency5,
rx=ap.rx_bytes5,
tx=ap.tx_bytes5,
)
)
)
frequency24 = self.frequency_from_channel(ap.channel24)
wirelessinfos.append(
WirelessInfo(
frequency=frequency24,
rx=ap.rx_bytes5,
tx=ap.tx_bytes5,

if ap.channel24:
frequency24 = self.frequency_from_channel(ap.channel24)
wirelessinfos.append(
WirelessInfo(
frequency=frequency24,
rx=ap.rx_bytes5,
tx=ap.tx_bytes5,
)
)
)

statistics.append(
StatisticsInfo(
Expand Down

0 comments on commit 3b804ac

Please sign in to comment.