Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bearer Token Auth #63

Merged
merged 6 commits into from
Jan 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix test code
  • Loading branch information
jasonacox committed Jan 2, 2024
commit a81b5e5c9038b598dc3ec090912a968bba392557
7 changes: 4 additions & 3 deletions pypowerwall/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,7 @@ def setup(self):

# Test code
set_debug(False)
tuser = None
# Check for .pypowerwall.auth file
if os.path.isfile(AUTHFILE):
# Read the json file
Expand Down Expand Up @@ -961,9 +962,9 @@ def setup(self):

print("Connected to Tesla Cloud")

#print("\nSite Data")
#sites = cloud.getsites()
#print(sites)
print("\nSite Data")
sites = cloud.getsites()
print(sites)

#print("\Battery")
#r = cloud.get_battery()
Expand Down