core/homeassistant/components/tellduslive/const.py

37 lines
841 B
Python
Raw Normal View History

"""Consts used by TelldusLive."""
from datetime import timedelta
from homeassistant.const import ( # noqa pylint: disable=unused-import
2019-07-31 19:25:30 +00:00
ATTR_BATTERY_LEVEL,
CONF_HOST,
CONF_TOKEN,
DEVICE_DEFAULT_NAME,
)
2019-07-31 19:25:30 +00:00
APPLICATION_NAME = "Home Assistant"
2019-07-31 19:25:30 +00:00
DOMAIN = "tellduslive"
2019-07-31 19:25:30 +00:00
TELLDUS_CONFIG_FILE = "tellduslive.conf"
KEY_CONFIG = "tellduslive_config"
2019-07-31 19:25:30 +00:00
SIGNAL_UPDATE_ENTITY = "tellduslive_update"
2019-07-31 19:25:30 +00:00
KEY_SESSION = "session"
KEY_SCAN_INTERVAL = "scan_interval"
2019-07-31 19:25:30 +00:00
CONF_TOKEN_SECRET = "token_secret"
2019-07-31 19:25:30 +00:00
PUBLIC_KEY = "THUPUNECH5YEQA3RE6UYUPRUZ2DUGUGA"
NOT_SO_PRIVATE_KEY = "PHES7U2RADREWAFEBUSTUBAWRASWUTUS"
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"
2019-07-31 19:25:30 +00:00
SIGNAL_UPDATE_ENTITY = "tellduslive_update"
TELLDUS_DISCOVERY_NEW = "telldus_new_{}_{}"
2019-07-31 19:25:30 +00:00
CLOUD_NAME = "Cloud API"