Skip to content

Commit 1818241

Browse files
committed
Make auth a public method
1 parent 5b629d2 commit 1818241

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fordpass/fordpass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(self, username, password, vin):
2727
self.token = None
2828
self.expires = None
2929

30-
def __auth(self):
30+
def auth(self):
3131
'''Authenticate and store the token'''
3232

3333
data = {
@@ -58,7 +58,7 @@ def __acquireToken(self):
5858

5959
if (self.token == None) or (time.time() >= self.expiresAt):
6060
logging.info('No token, or has expired, requesting new token')
61-
self.__auth()
61+
self.auth()
6262
else:
6363
logging.info('Token is valid, continuing')
6464
pass

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='fordpass',
8-
version='0.0.2',
8+
version='0.0.3',
99
author="Dave Clarke",
1010
author_email="info@daveclarke.me",
1111
description="Python wrapper for the FordPass API for Ford vehicle information and control: start, stop, lock, unlock.",

0 commit comments

Comments
 (0)