summaryrefslogtreecommitdiff
path: root/kvmd/plugins/ugpio/gpio.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/ugpio/gpio.py')
-rw-r--r--kvmd/plugins/ugpio/gpio.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/kvmd/plugins/ugpio/gpio.py b/kvmd/plugins/ugpio/gpio.py
index 04afc75d..526397e1 100644
--- a/kvmd/plugins/ugpio/gpio.py
+++ b/kvmd/plugins/ugpio/gpio.py
@@ -78,9 +78,7 @@ class Plugin(BaseUserGpioDriver):
await self.__reader.poll()
def read(self, pin: int) -> bool:
- assert self.__reader
- return self.__reader.get(pin)
+ return gpio.read(pin)
def write(self, pin: int, state: bool) -> None:
- assert self.__reader
gpio.write(pin, state)