Skip to content

Commit

Permalink
settings: allow unkonwn keys in Key rule conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed Aug 28, 2024
1 parent ae39ac4 commit fdd2c79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/logitech_receiver/diversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,9 @@ def __init__(self, args, warn=True):

if isinstance(key, str) and key in CONTROL:
self.key = CONTROL[key]
elif isinstance(key, str) and key.startswith("unknown:"):
logger.info(f"rule Key key name currently unknown: {key}")
self.key = CONTROL[int(key[-4:], 16)]
else:
if warn:
logger.warning(f"rule Key key name not name of a Logitech key: {key}")
Expand Down

0 comments on commit fdd2c79

Please sign in to comment.