Skip to content

Commit

Permalink
rules: fix bug in Set action
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed Feb 20, 2024
1 parent 3f692c0 commit 2072f79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/logitech_receiver/diversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,10 @@ def evaluate(self, feature, notification, device, status, last_result):
if args is None:
logger.warning('Set Action: invalid args %s for setting %s of %s', self.args[2:], self.args[1], self.args[0])
return None
setting.write(*args)
if len(args) > 1:
setting.write_key_value(args[0], args[1])
else:
setting.write(args[0])
if device.setting_callback:
device.setting_callback(device, type(setting), args)
return None
Expand Down

0 comments on commit 2072f79

Please sign in to comment.