continue progressively typing things (SerialInterface/BLEInterface initializations)

This commit is contained in:
Ian McEwen
2024-05-11 22:27:31 -07:00
parent fef0e1b77f
commit ba2d6c9d93
3 changed files with 10 additions and 6 deletions

View File

@@ -7,6 +7,8 @@ import asyncio
from threading import Thread, Event
from bleak import BleakScanner, BleakClient
from typing import Optional
from meshtastic.mesh_interface import MeshInterface
from meshtastic.util import our_exit
@@ -30,7 +32,7 @@ class BLEInterface(MeshInterface):
MESH = False
def __init__(self, address, noProto = False, debugOut = None):
def __init__(self, address: Optional[str], noProto: bool = False, debugOut = None):
self.state = BLEInterface.BLEState()
if not address: