From 99e4615d384cbffb09ffc445bf90423c7eeeecfe Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Thu, 13 Apr 2023 23:09:30 +0300 Subject: lint fixes --- kvmd/plugins/ugpio/anelpwr.py | 3 +-- kvmd/plugins/ugpio/hue.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'kvmd/plugins/ugpio') 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: -- cgit v1.2.3