-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for connecting to Aquarea Demo Enviroment (#41)
* Refactor Aquarea service URLs and add AquareaEnvironment enum * Refactor Client initialization and add validation for username and password * Add AquareaEnvironment constant and update Client initialization * Refactor login method in Client class * Refactor login_demo method in Client class
- Loading branch information
Showing
3 changed files
with
113 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
"""Constants definition""" | ||
|
||
from enum import IntEnum | ||
|
||
|
||
AQUAREA_SERVICE_BASE = "https://aquarea-smart.panasonic.com/" | ||
AQUAREA_SERVICE_DEMO_BASE = "https://demo.aquarea-smart.panasonic.com/" | ||
AQUAREA_SERVICE_LOGIN = "remote/v1/api/auth/login" | ||
AQUAREA_SERVICE_DEVICES = "remote/v1/api/devices" | ||
AQUAREA_SERVICE_CONSUMPTION = "remote/v1/api/consumption" | ||
AQUAREA_SERVICE_CONTRACT = "remote/contract" | ||
|
||
AQUAREA_SERVICE_A2W_STATUS_DISPLAY = ( | ||
"https://aquarea-smart.panasonic.com/remote/a2wStatusDisplay" | ||
) | ||
AQUAREA_SERVICE_A2W_STATUS_DISPLAY = "remote/a2wStatusDisplay" | ||
|
||
PANASONIC = "Panasonic" | ||
|
||
|
||
class AquareaEnvironment(IntEnum): | ||
"""Aquarea environment""" | ||
|
||
PRODUCTION = 0 | ||
DEMO = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters