core/homeassistant/components/smappee/const.py

24 lines
718 B
Python
Raw Normal View History

"""Constants for the Smappee integration."""
from datetime import timedelta
DOMAIN = "smappee"
DATA_CLIENT = "smappee_data"
BASE = "BASE"
SMAPPEE_PLATFORMS = ["binary_sensor", "sensor", "switch"]
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=5)
2020-06-26 17:46:14 +00:00
AUTHORIZE_URL = {
"PRODUCTION": "https://app1pub.smappee.net/dev/v1/oauth2/authorize",
"ACCEPTANCE": "https://farm2pub.smappee.net/dev/v1/oauth2/authorize",
"DEVELOPMENT": "https://farm3pub.smappee.net/dev/v1/oauth2/authorize",
}
TOKEN_URL = {
"PRODUCTION": "https://app1pub.smappee.net/dev/v3/oauth2/token",
"ACCEPTANCE": "https://farm2pub.smappee.net/dev/v3/oauth2/token",
"DEVELOPMENT": "https://farm3pub.smappee.net/dev/v3/oauth2/token",
}