summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/serial.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-08-06 03:36:54 +0300
committerMaxim Devaev <[email protected]>2023-08-06 03:36:54 +0300
commit92c3620a86338061d6ccb476b56fc90f7541b621 (patch)
tree0ee72ef91a1429805625ef7ed55f980d0aff622a /kvmd/plugins/hid/serial.py
parent472605734e3363b3f2f4e577a358eecfc3a7855a (diff)
mcu hid: optional power detecting on the hid device
Diffstat (limited to 'kvmd/plugins/hid/serial.py')
-rw-r--r--kvmd/plugins/hid/serial.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py
index d936e02b..593c50ae 100644
--- a/kvmd/plugins/hid/serial.py
+++ b/kvmd/plugins/hid/serial.py
@@ -80,6 +80,9 @@ class _SerialPhy(BasePhy):
with serial.Serial(self.__device_path, self.__speed, timeout=self.__read_timeout) as tty:
yield _SerialPhyConnection(tty)
+ def __str__(self) -> str:
+ return f"Serial(path={self.__device_path})"
+
# =====
class Plugin(BaseMcuHid):