2020-06-17 13:28:28 +02:00
|
|
|
"""Constants for the Smappee integration."""
|
|
|
|
|
|
|
|
from datetime import timedelta
|
|
|
|
|
|
|
|
DOMAIN = "smappee"
|
|
|
|
DATA_CLIENT = "smappee_data"
|
|
|
|
|
|
|
|
BASE = "BASE"
|
|
|
|
|
2020-06-24 14:37:48 +02:00
|
|
|
SMAPPEE_PLATFORMS = ["binary_sensor", "sensor", "switch"]
|
2020-06-17 13:28:28 +02:00
|
|
|
|
|
|
|
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=5)
|
|
|
|
|
|
|
|
AUTHORIZE_URL = "https://app1pub.smappee.net/dev/v1/oauth2/authorize"
|
|
|
|
TOKEN_URL = "https://app1pub.smappee.net/dev/v3/oauth2/token"
|