From ad533fd73428dad3637b82e7da990ebc7b92c51a Mon Sep 17 00:00:00 2001 From: Tobias Date: Mon, 13 May 2024 12:54:14 +0200 Subject: [PATCH] Update unifi_client.py --- unifi_respondd/unifi_client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/unifi_respondd/unifi_client.py b/unifi_respondd/unifi_client.py index 1a77a5d..52a36f5 100644 --- a/unifi_respondd/unifi_client.py +++ b/unifi_respondd/unifi_client.py @@ -94,6 +94,12 @@ def get_client_count_for_ap(ap_mac, clients, cfg): def get_ap_channel_usage(ssids, cfg): """This function returns the channels used for the Freifunk SSIDs""" + channel5 = None + rx_bytes5 = None + tx_bytes5 = None + channel24 = None + rx_bytes24 = None + tx_bytes24 = None for ssid in ssids: if re.search(cfg.ssid_regex, ssid.get("essid", "")): channel = ssid.get("channel", 0)