Index: leahi_dialin/utils/base.py =================================================================== diff -u -rdefe59974cd16b0f1c825bfc61aae7c3862f812e -r95a7bdcce8c5ffed0de3fbfb09f7f6999ad0f1bd --- leahi_dialin/utils/base.py (.../base.py) (revision defe59974cd16b0f1c825bfc61aae7c3862f812e) +++ leahi_dialin/utils/base.py (.../base.py) (revision 95a7bdcce8c5ffed0de3fbfb09f7f6999ad0f1bd) @@ -293,6 +293,9 @@ # Replace _ with ' ' and check the list again elif label.lower().replace('_', ' ') in cls._str_list[enum_member.name]: return enum_member + # Replace _ with ' ' and check the list again with _ with ' ' + elif label.lower().replace('_', ' ') in [enum_mem.lower().replace('_', ' ') for enum_mem in cls._str_list[enum_member.name] ]: + return enum_member # If the enum is the NUM_ collector, then return stop as after that only aliases are present elif enum_member.name.lower().startswith('num_'): return None