summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-04-16 00:37:50 +0300
committerMaxim Devaev <[email protected]>2024-04-16 00:37:50 +0300
commitceebac94850448131456e23d322aab942759e549 (patch)
tree0a321c125e31e5004fecd1ecf6f542664ae057bd
parent039348a0d9a8b53877a3a1995b9c2b408735f1e4 (diff)
style fix
-rw-r--r--kvmd/plugins/hid/__init__.py12
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,
},
}