* Change library to ttls * Add rgbw support * Add client session to config flow * Fix config flow * Adjust tests 1 * Fix more tests * Fix last tests * Add new tests * Update test for coverage * Update test for coverage 2 * Update test for coverage 3 * Change brightness to attribute * Set RGBW mode only when available * Add RGB support
30 lines
735 B
Python
30 lines
735 B
Python
"""Const for Twinkly."""
|
|
|
|
DOMAIN = "twinkly"
|
|
|
|
# Keys of the config entry
|
|
CONF_ENTRY_ID = "id"
|
|
CONF_ENTRY_HOST = "host"
|
|
CONF_ENTRY_NAME = "name"
|
|
CONF_ENTRY_MODEL = "model"
|
|
|
|
# Strongly named HA attributes keys
|
|
ATTR_HOST = "host"
|
|
|
|
# Keys of attributes read from the get_device_info
|
|
DEV_ID = "uuid"
|
|
DEV_NAME = "device_name"
|
|
DEV_MODEL = "product_code"
|
|
DEV_LED_PROFILE = "led_profile"
|
|
|
|
DEV_PROFILE_RGB = "RGB"
|
|
DEV_PROFILE_RGBW = "RGBW"
|
|
|
|
DATA_CLIENT = "client"
|
|
DATA_DEVICE_INFO = "device_info"
|
|
|
|
HIDDEN_DEV_VALUES = (
|
|
"code", # This is the internal status code of the API response
|
|
"copyright", # We should not display a copyright "LEDWORKS 2018" in the Home-Assistant UI
|
|
"mac", # Does not report the actual device mac address
|
|
)
|