Skip to content

Commit 22514a7

Browse files
committed
diversion: replace spaces by underscores when looking up features
1 parent 90ab457 commit 22514a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logitech_receiver/diversion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ def data(self):
742742
class Feature(Condition):
743743
def __init__(self, feature: str, warn: bool = True):
744744
try:
745-
self.feature = SupportedFeature[feature]
745+
self.feature = SupportedFeature[feature.replace(" ", "_")]
746746
except KeyError:
747747
self.feature = None
748748
if warn:

0 commit comments

Comments
 (0)