diff options
author | Devaev Maxim <[email protected]> | 2020-08-31 05:01:20 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-08-31 05:01:20 +0300 |
commit | 01eff33b673a56ff463fcff0be187cbe2d8533b9 (patch) | |
tree | 0fa07b08192b3268627c1061917962b65f4f84c8 /kvmd | |
parent | 584651afbade8b742952af35ba83bd9ee499f17b (diff) |
refactoring
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/plugins/atx/gpio.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kvmd/plugins/atx/gpio.py b/kvmd/plugins/atx/gpio.py index 2631faec..baea61be 100644 --- a/kvmd/plugins/atx/gpio.py +++ b/kvmd/plugins/atx/gpio.py @@ -21,7 +21,6 @@ import asyncio -import operator from typing import Dict from typing import AsyncGenerator @@ -97,8 +96,8 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes "enabled": True, "busy": self.__region.is_busy(), "leds": { - "power": operator.xor(self.__power_led_inverted, gpio.read(self.__power_led_pin)), - "hdd": operator.xor(self.__hdd_led_inverted, gpio.read(self.__hdd_led_pin)), + "power": (gpio.read(self.__power_led_pin) ^ self.__power_led_inverted), + "hdd": (gpio.read(self.__hdd_led_pin) ^ self.__hdd_led_inverted), }, } |