Skip to content

Commit

Permalink
Fix connect() #97
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonacox committed Jun 8, 2024
1 parent 706afaf commit ec0758b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/tedapi/tedapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def connect(self):
url = f'https://{GW_IP}'
try:
r = requests.get(url, verify=False, timeout=5)
r = True # no exception, so the request was successful
except requests.exceptions.RequestException as e:
r = False
log.error("ERROR: Powerwall not Found",
Expand Down

0 comments on commit ec0758b

Please sign in to comment.