diff options
-rw-r--r-- | kvmd/plugins/atx/gpio.py | 6 | ||||
-rw-r--r-- | kvmd/plugins/hid/serial.py | 2 | ||||
-rw-r--r-- | kvmd/plugins/msd/relay.py | 4 | ||||
-rw-r--r-- | kvmd/plugins/ugpio/gpio.py | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/kvmd/plugins/atx/gpio.py b/kvmd/plugins/atx/gpio.py index b49dd689..a76c5118 100644 --- a/kvmd/plugins/atx/gpio.py +++ b/kvmd/plugins/atx/gpio.py @@ -78,7 +78,7 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes self.__reader = aiogp.AioReader( path=aiogp.DEVICE_PATH, - consumer="kvmd/atx-gpio/leds", + consumer="kvmd::atx-gpio::leds", pins={ power_led_pin: aiogp.AioReaderPinParams(power_led_inverted, power_led_debounce), hdd_led_pin: aiogp.AioReaderPinParams(hdd_led_inverted, hdd_led_debounce), @@ -111,10 +111,10 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes self.__chip = gpiod.Chip(aiogp.DEVICE_PATH) self.__power_switch_line = self.__chip.get_line(self.__power_switch_pin) - self.__power_switch_line.request("kvmd/atx-gpio/power_switch", gpiod.LINE_REQ_DIR_OUT, default_val=0) + self.__power_switch_line.request("kvmd::atx-gpio::power_switch", gpiod.LINE_REQ_DIR_OUT, default_val=0) self.__reset_switch_line = self.__chip.get_line(self.__reset_switch_pin) - self.__reset_switch_line.request("kvmd/atx-gpio/reset_switch", gpiod.LINE_REQ_DIR_OUT, default_val=0) + self.__reset_switch_line.request("kvmd::atx-gpio::reset_switch", gpiod.LINE_REQ_DIR_OUT, default_val=0) async def get_state(self) -> Dict: return { diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py index c07ea45c..44ee08aa 100644 --- a/kvmd/plugins/hid/serial.py +++ b/kvmd/plugins/hid/serial.py @@ -172,7 +172,7 @@ class _Gpio: assert self.__reset_line is None self.__chip = gpiod.Chip(aiogp.DEVICE_PATH) self.__reset_line = self.__chip.get_line(self.__reset_pin) - self.__reset_line.request("kvmd/hid-serial/reset", gpiod.LINE_REQ_DIR_OUT, default_val=0) + self.__reset_line.request("kvmd::hid-serial::reset", gpiod.LINE_REQ_DIR_OUT, default_val=0) def close(self) -> None: if self.__chip: diff --git a/kvmd/plugins/msd/relay.py b/kvmd/plugins/msd/relay.py index cec03377..ac09b5c9 100644 --- a/kvmd/plugins/msd/relay.py +++ b/kvmd/plugins/msd/relay.py @@ -177,10 +177,10 @@ class _Gpio: self.__chip = gpiod.Chip(aiogp.DEVICE_PATH) self.__target_line = self.__chip.get_line(self.__target_pin) - self.__target_line.request("kvmd/msd-relay/target", gpiod.LINE_REQ_DIR_OUT, default_val=0) + self.__target_line.request("kvmd::msd-relay::target", gpiod.LINE_REQ_DIR_OUT, default_val=0) self.__reset_line = self.__chip.get_line(self.__reset_pin) - self.__reset_line.request("kvmd/msd-relay/reset", gpiod.LINE_REQ_DIR_OUT, default_val=0) + self.__reset_line.request("kvmd::msd-relay::reset", gpiod.LINE_REQ_DIR_OUT, default_val=0) def close(self) -> None: if self.__chip: diff --git a/kvmd/plugins/ugpio/gpio.py b/kvmd/plugins/ugpio/gpio.py index 4b951057..e7bcc683 100644 --- a/kvmd/plugins/ugpio/gpio.py +++ b/kvmd/plugins/ugpio/gpio.py @@ -59,7 +59,7 @@ class Plugin(BaseUserGpioDriver): assert self.__reader is None self.__reader = aiogp.AioReader( path=aiogp.DEVICE_PATH, - consumer="kvmd/ugpio-gpio/inputs", + consumer="kvmd::ugpio-gpio::inputs", pins=self.__input_pins, notifier=self._notifier, ) @@ -67,7 +67,7 @@ class Plugin(BaseUserGpioDriver): self.__chip = gpiod.Chip(aiogp.DEVICE_PATH) for (pin, initial) in self.__output_pins.items(): line = self.__chip.get_line(pin) - line.request("kvmd/ugpio-gpio/outputs", gpiod.LINE_REQ_DIR_OUT, default_val=int(initial or False)) + line.request("kvmd::ugpio-gpio::outputs", gpiod.LINE_REQ_DIR_OUT, default_val=int(initial or False)) self.__output_lines[pin] = line async def run(self) -> None: |