diff options
author | Maxim Devaev <[email protected]> | 2024-04-16 00:37:50 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-07-19 15:25:14 +0300 |
commit | 06d656c6e0ed633cee4c81140e27669bf40b9cb9 (patch) | |
tree | 51f9802cf6672b77d984afde846fff8971bef334 | |
parent | 107af57d4e1c961d1dbfc7460500e735315d8108 (diff) |
style fix
-rw-r--r-- | kvmd/plugins/hid/__init__.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kvmd/plugins/hid/__init__.py b/kvmd/plugins/hid/__init__.py index c94bc314..1c2efeec 100644 --- a/kvmd/plugins/hid/__init__.py +++ b/kvmd/plugins/hid/__init__.py @@ -41,17 +41,17 @@ class BaseHid(BasePlugin): def __init__(self, jiggler_enabled: bool, jiggler_active: bool, jiggler_interval: int) -> None: self.__jiggler_enabled = jiggler_enabled self.__jiggler_active = jiggler_active + self.__jiggler_interval = jiggler_interval self.__jiggler_absolute = True self.__activity_ts = 0 - self.__jiggler_interval = jiggler_interval @classmethod def _get_jiggler_options(cls) -> dict[str, Any]: return { "jiggler": { - "enabled": Option(False, type=valid_bool, unpack_as="jiggler_enabled"), - "active": Option(False, type=valid_bool, unpack_as="jiggler_active"), - "interval": Option(60, type=valid_int_f1, unpack_as="jiggler_interval") + "enabled": Option(False, type=valid_bool, unpack_as="jiggler_enabled"), + "active": Option(False, type=valid_bool, unpack_as="jiggler_active"), + "interval": Option(60, type=valid_int_f1, unpack_as="jiggler_interval"), }, } @@ -135,8 +135,8 @@ class BaseHid(BasePlugin): def _get_jiggler_state(self) -> dict: return { "jiggler": { - "enabled": self.__jiggler_enabled, - "active": self.__jiggler_active, + "enabled": self.__jiggler_enabled, + "active": self.__jiggler_active, "interval": self.__jiggler_interval, }, } |