receiver: correctly handle settings that share a name in config

This commit is contained in:
Peter F. Patel-Schneider 2020-08-14 11:29:26 -04:00
parent 5041530952
commit eda0a95585
1 changed files with 3 additions and 1 deletions

View File

@ -676,4 +676,6 @@ def check_feature_settings(device, already_known):
def check_feature_setting(device, setting_name):
for name, featureId, featureFn, __, __ in _SETTINGS_TABLE:
if name == setting_name and featureId and featureFn:
return check_feature(device, name, featureId, featureFn)
feature = check_feature(device, name, featureId, featureFn)
if feature:
return feature