Home Assistant Unofficial Reference
2024.12.1
const.py
Go to the documentation of this file.
1
"""Constants for the Smappee integration."""
2
3
from
datetime
import
timedelta
4
5
from
homeassistant.const
import
Platform
6
7
DOMAIN =
"smappee"
8
DATA_CLIENT =
"smappee_data"
9
10
CONF_HOSTNAME =
"hostname"
11
CONF_SERIALNUMBER =
"serialnumber"
12
CONF_TITLE =
"title"
13
14
ENV_CLOUD =
"cloud"
15
ENV_LOCAL =
"local"
16
17
PLATFORMS = [Platform.BINARY_SENSOR, Platform.SENSOR, Platform.SWITCH]
18
19
SUPPORTED_LOCAL_DEVICES = (
"Smappee1"
,
"Smappee2"
,
"Smappee50"
)
20
21
MIN_TIME_BETWEEN_UPDATES =
timedelta
(seconds=20)
22
23
AUTHORIZE_URL = {
24
"PRODUCTION"
:
"https://app1pub.smappee.net/dev/v1/oauth2/authorize"
,
25
"ACCEPTANCE"
:
"https://farm2pub.smappee.net/dev/v1/oauth2/authorize"
,
26
"DEVELOPMENT"
:
"https://farm3pub.smappee.net/dev/v1/oauth2/authorize"
,
27
}
28
TOKEN_URL = {
29
"PRODUCTION"
:
"https://app1pub.smappee.net/dev/v3/oauth2/token"
,
30
"ACCEPTANCE"
:
"https://farm2pub.smappee.net/dev/v3/oauth2/token"
,
31
"DEVELOPMENT"
:
"https://farm3pub.smappee.net/dev/v3/oauth2/token"
,
32
}
homeassistant.components.uptimerobot.const.timedelta
timedelta
Definition:
const.py:14
homeassistant.const
Definition:
const.py:1
core
homeassistant
components
smappee
const.py
Generated by
1.9.1