2018-12-04 09:08:40 +00:00
|
|
|
"""Consts used by TelldusLive."""
|
2018-12-10 17:44:45 +00:00
|
|
|
from datetime import timedelta
|
|
|
|
|
2019-11-16 09:22:07 +00:00
|
|
|
from homeassistant.const import ( # noqa: F401 pylint: disable=unused-import
|
2019-07-31 19:25:30 +00:00
|
|
|
ATTR_BATTERY_LEVEL,
|
|
|
|
CONF_HOST,
|
|
|
|
CONF_TOKEN,
|
|
|
|
DEVICE_DEFAULT_NAME,
|
|
|
|
)
|
2018-12-10 17:44:45 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
APPLICATION_NAME = "Home Assistant"
|
2018-12-04 09:08:40 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
DOMAIN = "tellduslive"
|
2018-12-04 09:08:40 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
TELLDUS_CONFIG_FILE = "tellduslive.conf"
|
|
|
|
KEY_CONFIG = "tellduslive_config"
|
2018-12-10 17:44:45 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
SIGNAL_UPDATE_ENTITY = "tellduslive_update"
|
2018-12-10 17:44:45 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
KEY_SESSION = "session"
|
|
|
|
KEY_SCAN_INTERVAL = "scan_interval"
|
2018-12-10 17:44:45 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
CONF_TOKEN_SECRET = "token_secret"
|
2018-12-10 17:44:45 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
PUBLIC_KEY = "THUPUNECH5YEQA3RE6UYUPRUZ2DUGUGA"
|
|
|
|
NOT_SO_PRIVATE_KEY = "PHES7U2RADREWAFEBUSTUBAWRASWUTUS"
|
2018-12-10 17:44:45 +00:00
|
|
|
|
|
|
|
MIN_UPDATE_INTERVAL = timedelta(seconds=5)
|
|
|
|
SCAN_INTERVAL = timedelta(minutes=1)
|
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
ATTR_LAST_UPDATED = "time_last_updated"
|
2018-12-10 17:44:45 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
SIGNAL_UPDATE_ENTITY = "tellduslive_update"
|
|
|
|
TELLDUS_DISCOVERY_NEW = "telldus_new_{}_{}"
|
2018-12-10 17:44:45 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
CLOUD_NAME = "Cloud API"
|