diff options
author | Maxim Devaev <[email protected]> | 2022-08-07 19:04:32 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-08-07 19:04:32 +0300 |
commit | ec9785b4be4afb8667e6968a0454aeca62a190e2 (patch) | |
tree | 0b5c7d1b03041867c78f5533a8dd8f488711b073 /kvmd/plugins/ugpio/hue.py | |
parent | aa630988cc09f31d412a62c5480d4bec1a7c626e (diff) |
simplified AioNotifier()
Diffstat (limited to 'kvmd/plugins/ugpio/hue.py')
-rw-r--r-- | kvmd/plugins/ugpio/hue.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/ugpio/hue.py b/kvmd/plugins/ugpio/hue.py index f81df4ca..b34cb719 100644 --- a/kvmd/plugins/ugpio/hue.py +++ b/kvmd/plugins/ugpio/hue.py @@ -122,7 +122,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute get_logger().error("Failed Hue bulk GET request: %s", tools.efmt(err)) self.__state = dict.fromkeys(self.__state, None) if self.__state != prev_state: - await self._notifier.notify() + self._notifier.notify() prev_state = self.__state await self.__update_notifier.wait(self.__state_poll) @@ -148,7 +148,7 @@ class Plugin(BaseUserGpioDriver): # pylint: disable=too-many-instance-attribute get_logger().error("Failed Hue PUT request to pin %s: %s", pin, tools.efmt(err)) raise GpioDriverOfflineError(self) else: - await self.__update_notifier.notify() + self.__update_notifier.notify() def __ensure_http_session(self) -> aiohttp.ClientSession: if not self.__http_session: |