diff --git a/dpt-tools.py b/dpt-tools.py index 6a479d4..7ba73b7 100644 --- a/dpt-tools.py +++ b/dpt-tools.py @@ -65,8 +65,7 @@ def main(): ''' main func to initalize dpt object ''' - p = argparse.ArgumentParser( - description="DPT Tools") + p = argparse.ArgumentParser(description="DPT Tools") p.add_argument( '--client-id', '-id', dest="dpt_id", diff --git a/python_api/libDPT.py b/python_api/libDPT.py index 331e94d..30491a7 100644 --- a/python_api/libDPT.py +++ b/python_api/libDPT.py @@ -598,14 +598,13 @@ class DPT(): ''' return self.authenticate() - def authenticate(self, client_id_fp="", key_fp="", testmode=False): ''' authenticate is necessary to send url request ''' # find client_id_fp and key_fp optional if not client_id_fp or not key_fp: - client_id_fp, key_fp = auto_find_client_key_fps() + client_id_fp, key_fp = self.auto_find_client_key_fps() if not os.path.isfile(client_id_fp) or not os.path.isfile(key_fp): print( "! Err: did not find {0} or {1}"