Fix Lint Error

- add docstring to traverseConfig function
This commit is contained in:
Dan Welch
2024-04-16 14:46:35 -06:00
parent 590b60fefb
commit 03c1f08e45

View File

@@ -135,6 +135,7 @@ def splitCompoundName(comp_name):
return name
def traverseConfig(config_root, config, interface_config):
"""Iterate through current config level preferences and either traverse deeper if preference is a dict or set preference"""
snake_name = meshtastic.util.camel_to_snake(config_root)
for pref in config:
pref_name = f"{snake_name}.{pref}"