From d618500e86b0ff493e75d4f199f4eb45a204efc9 Mon Sep 17 00:00:00 2001 From: benjamin Date: Tue, 10 Dec 2024 20:36:20 +0100 Subject: [PATCH] fix elif statement for lint --- mqtt_io/modules/gpio/gpiozero.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mqtt_io/modules/gpio/gpiozero.py b/mqtt_io/modules/gpio/gpiozero.py index ff6f3dbb..68ffdfdb 100644 --- a/mqtt_io/modules/gpio/gpiozero.py +++ b/mqtt_io/modules/gpio/gpiozero.py @@ -84,10 +84,9 @@ def set_pin(self, pin: PinType, value: bool) -> None: def get_pin(self, pin: PinType) -> bool: if pin in self._in_pins: return cast(bool, self._in_pins[pin].is_active) - elif pin in self._out_pins: + if pin in self._out_pins: return bool(self._out_pins[pin].value) - else: - raise ValueError(f"Pin {pin} not found") + raise ValueError(f"Pin {pin} not found") def setup_interrupt_callback( self,