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):
|
def _read(self):
|
||||||
try:
|
try:
|
||||||
return self.pin.state == self._active_state
|
return self.pin.state == self._active_state
|
||||||
except TypeError:
|
except (AttributeError, TypeError):
|
||||||
self._check_open()
|
self._check_open()
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user