From 97e27661d769137488da0cda03ae7ebac72edccc Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sun, 21 Nov 2021 06:26:09 -0500 Subject: [PATCH] gpio: remove get_gpio_out_from_config method The confighelper object now can setup gpios directly. Signed-off-by: Eric Callahan --- moonraker/components/gpio.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/moonraker/components/gpio.py b/moonraker/components/gpio.py index 0a513e6..329a502 100644 --- a/moonraker/components/gpio.py +++ b/moonraker/components/gpio.py @@ -34,17 +34,6 @@ class GpioFactory: self.chips[chip_name] = chip return chip - def get_gpio_out_from_config(self, - config: ConfigHelper, - option: str = "pin", - initial_value: int = 0 - ) -> GpioOutputPin: - pin_name = config.get(option) - try: - return self.setup_gpio_out(pin_name, initial_value) - except Exception as e: - raise config.error(str(e)) from None - def setup_gpio_out(self, pin_name: str, initial_value: int = 0