UniFi - Allow tracking of clients connected to third party APs (#34067)
* Allow disable wired bug work around * Move small improvements from closed PR #34065 * Fix failing test * Add new test * Some extra logging * Harmonize log outputs * Add config flow string * Fix Balloobs comments
This commit is contained in:
1 parent
2326a2941e
commit
465eeab553
11 files changed
+145
-64
No files matched your search
@@ -118,7 +118,7 @@ class UniFiRxBandwidthSensor(UniFiClient):
|
||||
@property
|
||||
def state(self):
|
||||
"""Return the state of the sensor."""
|
||||
if self.is_wired:
|
||||
if self._is_wired:
|
||||
return self.client.wired_rx_bytes / 1000000
|
||||
return self.client.raw.get("rx_bytes", 0) / 1000000
|
||||
|
||||
@@ -145,7 +145,7 @@ class UniFiTxBandwidthSensor(UniFiRxBandwidthSensor):
|
||||
@property
|
||||
def state(self):
|
||||
"""Return the state of the sensor."""
|
||||
if self.is_wired:
|
||||
if self._is_wired:
|
||||
return self.client.wired_tx_bytes / 1000000
|
||||
return self.client.raw.get("tx_bytes", 0) / 1000000
|
||||
|
||||
|
||||
Reference in new issue
Block a user