summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kvmd/plugins/ugpio/anelpwr.py3
-rw-r--r--kvmd/plugins/ugpio/hue.py3
-rw-r--r--testenv/linters/pylint.ini4
3 files changed, 5 insertions, 5 deletions
diff --git a/kvmd/plugins/ugpio/anelpwr.py b/kvmd/plugins/ugpio/anelpwr.py
index 0b8b6bc3..ca00168f 100644
--- a/kvmd/plugins/ugpio/anelpwr.py
+++ b/kvmd/plugins/ugpio/anelpwr.py
@@ -148,8 +148,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
except Exception as err:
get_logger().error("Failed ANELPWR POST request to pin %s: %s", pin, tools.efmt(err))
raise GpioDriverOfflineError(self)
- else:
- self.__update_notifier.notify()
+ self.__update_notifier.notify()
def __ensure_http_session(self) -> aiohttp.ClientSession:
if not self.__http_session:
diff --git a/kvmd/plugins/ugpio/hue.py b/kvmd/plugins/ugpio/hue.py
index 7270c4d8..7085c0d8 100644
--- a/kvmd/plugins/ugpio/hue.py
+++ b/kvmd/plugins/ugpio/hue.py
@@ -145,8 +145,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute
except Exception as err:
get_logger().error("Failed Hue PUT request to pin %s: %s", pin, tools.efmt(err))
raise GpioDriverOfflineError(self)
- else:
- self.__update_notifier.notify()
+ self.__update_notifier.notify()
def __ensure_http_session(self) -> aiohttp.ClientSession:
if not self.__http_session:
diff --git a/testenv/linters/pylint.ini b/testenv/linters/pylint.ini
index 858f5b6a..3b9c125d 100644
--- a/testenv/linters/pylint.ini
+++ b/testenv/linters/pylint.ini
@@ -1,6 +1,6 @@
[MASTER]
ignore = .git
-extension-pkg-whitelist =
+extension-pkg-whitelist =
setproctitle,
gpiod,
spidev,
@@ -35,6 +35,8 @@ disable =
unsubscriptable-object,
unused-private-member,
unspecified-encoding,
+ consider-using-f-string,
+ unnecessary-lambda-assignment,
# https://github.com/PyCQA/pylint/issues/3882
[CLASSES]