mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-02 16:22:20 -07:00
FIX: lowercase MAC normalization across project v0.1
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -413,11 +413,11 @@ class OmadaData:
|
||||
|
||||
OmadaHelper.verbose(f"Making entry for: {entry['mac_address']}")
|
||||
|
||||
# If the device_type is gateway, set the parent_node to Internet
|
||||
# If the device_type is gateway, set the parent_node to internet
|
||||
device_type = entry["device_type"].lower()
|
||||
parent_node = entry["parent_node_mac_address"]
|
||||
if len(parent_node) == 0 and entry["device_type"] == "gateway" and is_typical_router_ip(entry["ip_address"]):
|
||||
parent_node = "Internet"
|
||||
parent_node = "internet"
|
||||
|
||||
# Some device type naming exceptions
|
||||
if device_type == "iphone":
|
||||
|
||||
Reference in New Issue
Block a user