File: __init__.py

package info (click to toggle)
python-elmax-api 0.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 324 kB
  • sloc: python: 1,378; makefile: 20
file content (13 lines) | stat: -rw-r--r-- 517 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Test for the Elmax Cloud service client."""
import os

from elmax_api.http import Elmax, ElmaxLocal

USERNAME = os.environ.get("ELMAX_USERNAME")
PASSWORD = os.environ.get("ELMAX_PASSWORD")
PANEL_PIN = os.environ.get("ELMAX_PANEL_PIN")
LOCAL_TEST = os.environ.get("LOCAL_TEST", "false")
LOCAL_API_URL = os.environ.get("LOCAL_API_URL")

LOCAL_TEST = LOCAL_TEST.lower() == "true"
client = Elmax(username=USERNAME, password=PASSWORD) if not LOCAL_TEST else ElmaxLocal(panel_api_url=LOCAL_API_URL, panel_code=PANEL_PIN)