hass-core/homeassistant/components/logi_circle/const.py
Quentame 1855c91988
Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const ()
* Use CONF_CLIENT_ID & CONF_CLIENT_SECRET from homeassistant.const

* Fix pylint

* Use in tests

* Search for "client_id"

* Fix tests

* Fix test

* Fix test
2020-05-30 17:27:20 +02:00

32 lines
1,014 B
Python

"""Constants in Logi Circle component."""
from homeassistant.const import UNIT_PERCENTAGE
DOMAIN = "logi_circle"
DATA_LOGI = DOMAIN
CONF_API_KEY = "api_key"
CONF_REDIRECT_URI = "redirect_uri"
DEFAULT_CACHEDB = ".logi_cache.pickle"
LED_MODE_KEY = "LED"
RECORDING_MODE_KEY = "RECORDING_MODE"
# Sensor types: Name, unit of measure, icon per sensor key.
LOGI_SENSORS = {
"battery_level": ["Battery", UNIT_PERCENTAGE, "battery-50"],
"last_activity_time": ["Last Activity", None, "history"],
"recording": ["Recording Mode", None, "eye"],
"signal_strength_category": ["WiFi Signal Category", None, "wifi"],
"signal_strength_percentage": ["WiFi Signal Strength", UNIT_PERCENTAGE, "wifi"],
"streaming": ["Streaming Mode", None, "camera"],
}
SIGNAL_LOGI_CIRCLE_RECONFIGURE = "logi_circle_reconfigure"
SIGNAL_LOGI_CIRCLE_SNAPSHOT = "logi_circle_snapshot"
SIGNAL_LOGI_CIRCLE_RECORD = "logi_circle_record"
# Attribution
ATTRIBUTION = "Data provided by circle.logi.com"
DEVICE_BRAND = "Logitech"