summaryrefslogtreecommitdiff
path: root/kvmd/plugins
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-12-23 20:56:16 +0300
committerMaxim Devaev <[email protected]>2021-12-23 20:56:16 +0300
commit1e98d9bd5d63270e17d2b8cddd5820114c355aed (patch)
treee2fec1979c4a22800a49deaad5188eb87b77f00f /kvmd/plugins
parentaef7a5a094853972cbe1ce9127ad1a546ea7f2ab (diff)
python 3.10
Diffstat (limited to 'kvmd/plugins')
-rw-r--r--kvmd/plugins/hid/bt/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/bt/server.py b/kvmd/plugins/hid/bt/server.py
index 1e51cda2..ec84a5d8 100644
--- a/kvmd/plugins/hid/bt/server.py
+++ b/kvmd/plugins/hid/bt/server.py
@@ -151,7 +151,7 @@ class BtServer: # pylint: disable=too-many-instance-attributes
@contextlib.contextmanager
def __listen(self, role: _RoleT, addr: str, port: int) -> Generator[socket.socket, None, None]:
get_logger(0).info("Listening [%s]:%d for %s ...", addr, port, role)
- with socket.socket(socket.AF_BLUETOOTH, socket.SOCK_SEQPACKET, socket.BTPROTO_L2CAP) as sock:
+ with socket.socket(socket.AF_BLUETOOTH, socket.SOCK_SEQPACKET, socket.BTPROTO_L2CAP) as sock: # type: ignore
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.settimeout(self.__socket_timeout)
sock.bind((addr, port))