mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
@@ -243,7 +243,7 @@ class GPIODevice(ValuesMixin, GPIOBase):
|
||||
def _read(self):
|
||||
try:
|
||||
return self.pin.state == self._active_state
|
||||
except TypeError:
|
||||
except (AttributeError, TypeError):
|
||||
self._check_open()
|
||||
raise
|
||||
|
||||
|
||||
Reference in New Issue
Block a user