Implement local discovery of Smappee legacy devices (#37812)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
65f1e0c71a
commit
07de9deab6
14 changed files with 708 additions and 60 deletions
|
@ -5,11 +5,16 @@ from datetime import timedelta
|
|||
DOMAIN = "smappee"
|
||||
DATA_CLIENT = "smappee_data"
|
||||
|
||||
BASE = "BASE"
|
||||
CONF_HOSTNAME = "hostname"
|
||||
CONF_SERIALNUMBER = "serialnumber"
|
||||
CONF_TITLE = "title"
|
||||
|
||||
ENV_CLOUD = "cloud"
|
||||
ENV_LOCAL = "local"
|
||||
|
||||
SMAPPEE_PLATFORMS = ["binary_sensor", "sensor", "switch"]
|
||||
|
||||
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=5)
|
||||
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=20)
|
||||
|
||||
AUTHORIZE_URL = {
|
||||
"PRODUCTION": "https://app1pub.smappee.net/dev/v1/oauth2/authorize",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue