Fix some remaining mypy complaints

This commit is contained in:
Ian McEwen committed 2024-10-29 06:47:16 -07:00
1 parent 20d75d9023
commit 384063db19
5 files changed
+14 -6

No files matched your search

+4
View File
@@ -174,6 +174,10 @@ class BLEInterface(MeshInterface):
self.should_read = False
retries: int = 0
while self._want_receive:
if self.client is None:
logging.debug(f"BLE client is None, shutting down")
self._want_receive = False
continue
try:
b = bytes(self.client.read_gatt_char(FROMRADIO_UUID))
except BleakDBusError as e: