Skip to content

Commit

Permalink
fix elif statement for lint (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjiU authored Dec 10, 2024
1 parent 8aca4a8 commit 1960d7a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mqtt_io/modules/gpio/gpiozero.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1960d7a

Please sign in to comment.