summaryrefslogtreecommitdiff
path: root/kvmd/plugins
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-07-08 05:37:53 +0300
committerMaxim Devaev <[email protected]>2024-07-08 05:37:53 +0300
commitea285e3fec3335d3abe8bb19f4a60d37e3deb18d (patch)
tree8ef12145569a27f38ded43ad7afe6d3e15a77f23 /kvmd/plugins
parent237d39b17224f09211cb242876717a7ef7c99d5b (diff)
lint fix
Diffstat (limited to 'kvmd/plugins')
-rw-r--r--kvmd/plugins/hid/spi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/hid/spi.py b/kvmd/plugins/hid/spi.py
index 278e68e1..dadcc77e 100644
--- a/kvmd/plugins/hid/spi.py
+++ b/kvmd/plugins/hid/spi.py
@@ -120,8 +120,8 @@ class _SpiPhy(BasePhy): # pylint: disable=too-many-instance-attributes
return os.path.exists(f"/dev/spidev{self.__bus}.{self.__chip}")
@contextlib.contextmanager
- def connected(self) -> Generator[_SpiPhyConnection, None, None]: # pylint: disable=contextmanager-generator-missing-cleanup # type: ignore
- with self.__sw_cs_connected() as switch_cs:
+ def connected(self) -> Generator[_SpiPhyConnection, None, None]: # type: ignore
+ with self.__sw_cs_connected() as switch_cs: # pylint: disable=contextmanager-generator-missing-cleanup
with contextlib.closing(spidev.SpiDev(self.__bus, self.__chip)) as spi:
spi.mode = 0
spi.no_cs = (not self.__hw_cs)