diff options
author | Devaev Maxim <[email protected]> | 2020-10-03 03:34:55 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-10-03 05:02:14 +0300 |
commit | cccf44655aadc80d2d535033951e7af9ac65a271 (patch) | |
tree | 1ea9607e91e0189a0d73e87bed39b14c29213585 /kvmd/plugins/msd/relay.py | |
parent | 872145590a3227b799ae7f5e7731dfc15967d63c (diff) |
common env variables
Diffstat (limited to 'kvmd/plugins/msd/relay.py')
-rw-r--r-- | kvmd/plugins/msd/relay.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmd/plugins/msd/relay.py b/kvmd/plugins/msd/relay.py index d1d91841..fe1c7784 100644 --- a/kvmd/plugins/msd/relay.py +++ b/kvmd/plugins/msd/relay.py @@ -39,6 +39,7 @@ import gpiod from ...logging import get_logger +from ... import env from ... import aiotools from ... import aiofs from ... import aiogp @@ -172,7 +173,7 @@ class _Gpio: assert self.__target_line is None assert self.__reset_line is None - self.__chip = gpiod.Chip(aiogp.DEVICE_PATH) + self.__chip = gpiod.Chip(env.GPIO_DEVICE_PATH) self.__target_line = self.__chip.get_line(self.__target_pin) self.__target_line.request("kvmd::msd-relay::target", gpiod.LINE_REQ_DIR_OUT, default_vals=[0]) |