From 06a53acf47584d98d830c0ce394a2f771c4bc06f Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Sat, 19 Aug 2017 21:34:03 +0200 Subject: [PATCH] Ratbagd: _set_dbus_property doesn't return anything We don't want to return values from setters, but more importantly, _set_dbus_property doesn't even return anything anymore. --- piper/ratbagd.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/piper/ratbagd.py b/piper/ratbagd.py index ca6ee55..4456fd1 100644 --- a/piper/ratbagd.py +++ b/piper/ratbagd.py @@ -398,7 +398,7 @@ class RatbagdProfile(_RatbagdDBus): """Enable/Disable this profile. @param enabled The new state, as boolean""" - return self._set_dbus_property("Enabled", "b", enabled) + self._set_dbus_property("Enabled", "b", enabled) @GObject.Property def resolutions(self): @@ -485,7 +485,7 @@ class RatbagdResolution(_RatbagdDBus): @param res The new resolution, as (int, int) """ - return self._set_dbus_property("Resolution", "(uu)", res) + self._set_dbus_property("Resolution", "(uu)", res) @GObject.Property def report_rate(self): @@ -498,7 +498,7 @@ class RatbagdResolution(_RatbagdDBus): @param rate The new report rate, as int """ - return self._set_dbus_property("ReportRate", "u", rate) + self._set_dbus_property("ReportRate", "u", rate) @GObject.Property def maximum(self): @@ -770,7 +770,7 @@ class RatbagdLed(_RatbagdDBus): @param mode The new mode, as one of MODE_OFF, MODE_ON, MODE_CYCLE and MODE_BREATHING. """ - return self._set_dbus_property("Mode", "u", mode) + self._set_dbus_property("Mode", "u", mode) @GObject.Property def type(self): @@ -789,7 +789,7 @@ class RatbagdLed(_RatbagdDBus): @param color An RGB color, as an integer triplet with values 0-255. """ - return self._set_dbus_property("Color", "(uuu)", color) + self._set_dbus_property("Color", "(uuu)", color) @GObject.Property def effect_rate(self): @@ -802,7 +802,7 @@ class RatbagdLed(_RatbagdDBus): @param effect_rate The new effect rate, as int """ - return self._set_dbus_property("EffectRate", "u", effect_rate) + self._set_dbus_property("EffectRate", "u", effect_rate) @GObject.Property def brightness(self): @@ -815,4 +815,4 @@ class RatbagdLed(_RatbagdDBus): @param brightness The new brightness, as int """ - return self._set_dbus_property("Brightness", "u", brightness) + self._set_dbus_property("Brightness", "u", brightness)