idasen_controller/main.py
def unpickle_desk():
    """Load a Bleak device config from a pickle file and check that it is the correct device"""
    try:
        if IS_LINUX:
            with open(PICKLE_FILE,'rb') as f:
                desk = pickle.load(f)
                if desk.address == config['mac_address']:
                    return desk
    except Exception:
        pass
    return None
Load a Bleak device config from a pickle file and check that it is the correct device
Load a Bleak device config from a pickle file and check that it is the correct device
Load a Bleak device config from a pickle file and check that it is the correct device
def unpickle_desk():
    try:
        if IS_LINUX:
            with open(PICKLE_FILE,'rb') as f:
                desk = pickle.load(f)
                if desk.address == config['mac_address']:
                    return desk
    except Exception:
        pass
    return None
def unpickle_desk ( ) : try : if IS_LINUX : with open ( PICKLE_FILE , 'rb' ) as f : desk = pickle . load ( f ) if desk . address == config [ 'mac_address' ] : return desk except Exception : pass return None
Load a Bleak device config from a pickle file and check that it is the correct device
Load a Bleak device config from a pickle file and check that it is the correct device
"""Load a Bleak device config from a pickle file and check that it is the correct device"""