Fix some remaining mypy complaints

This commit is contained in:
Ian McEwen
2024-10-29 06:47:16 -07:00
parent 20d75d9023
commit 384063db19
5 changed files with 14 additions and 6 deletions

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: