From 2072f7966d5bda64b1dcd0d2c7e5467238c32088 Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Tue, 20 Feb 2024 11:08:38 -0500 Subject: [PATCH] rules: fix bug in Set action --- lib/logitech_receiver/diversion.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/logitech_receiver/diversion.py b/lib/logitech_receiver/diversion.py index 4958b40aa8..97d13709de 100644 --- a/lib/logitech_receiver/diversion.py +++ b/lib/logitech_receiver/diversion.py @@ -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