Skip to content

Commit c8dfb7c

Browse files
authored
Update API URLs for authentication and pairing
Fix: Update Fermax endpoints (oauth-pro-duoxme & pro-duoxme)
1 parent 9040a55 commit c8dfb7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

open_door.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def read_cached_token() -> str:
9696
}
9797

9898

99-
AUTH_URL = 'https://oauth.blue.fermax.com/oauth/token'
99+
AUTH_URL = 'https://oauth-pro-duoxme.fermax.io/oauth/token'
100100

101101
AUTH_HEADERS = {
102102
'Authorization': 'Basic ZHB2N2lxejZlZTVtYXptMWlxOWR3MWQ0MnNseXV0NDhrajBtcDVmdm81OGo1aWg6Yzd5bGtxcHVqd2FoODV5aG5wcnYwd2R2eXp1dGxjbmt3NHN6OTBidWxkYnVsazE=',
@@ -134,7 +134,7 @@ def get_json_headers(bearer_token: str) -> str:
134134
return headers
135135

136136

137-
PAIRINGS_URL = 'https://blue.fermax.com/pairing/api/v3/pairings/me'
137+
PAIRINGS_URL = 'https://pro-duoxme.fermax.io/pairing/api/v3/pairings/me'
138138

139139

140140
def pairings(bearer_token: str) -> tuple:
@@ -160,7 +160,7 @@ def pairings(bearer_token: str) -> tuple:
160160

161161

162162
def directed_opendoor(bearer_token: str, deviceId: str, accessId: str) -> str:
163-
directed_opendoor_url = f'https://blue.fermax.com/deviceaction/api/v1/device/{deviceId}/directed-opendoor'
163+
directed_opendoor_url = f'https://pro-duoxme.fermax.io/deviceaction/api/v1/device/{deviceId}/directed-opendoor'
164164

165165
payload = json.dumps(accessId)
166166

0 commit comments

Comments
 (0)