Skip to content

Commit 3640d34

Browse files
committed
⏪ "✨ Add possibility to use go.comwatt.com"
This reverts commit 2774a9d, reversing changes made to 459c527. :x
1 parent 73cfc32 commit 3640d34

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

comwatt_client/client.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@ class ComwattClient:
1414
session (requests.Session): The session object for making HTTP requests.
1515
1616
"""
17-
18-
API_ENDPOINTS = {
19-
'energy': 'https://energy.comwatt.com/api',
20-
'go': 'https://go.comwatt.com/api'
21-
}
22-
23-
def __init__(self, api = 'energy'):
24-
self.base_url = self.API_ENDPOINTS[api]
17+
def __init__(self):
18+
self.base_url = 'https://energy.comwatt.com/api'
2519
self.session = requests.Session()
2620

2721
def authenticate(self, username, password):

0 commit comments

Comments
 (0)