* Add twinkly integration * Add tests for the Twinkly integration * Update Twinkly client package to fix typo * Remove support of configuration.yaml from Twinkly integration * Add ability to unload Twinkly component from the UI * Remove dead code from Twinkly * Fix invalid error namespace in Twinkly for python 3.7 * Fix tests failing on CI * Workaround code analysis issue * Move twinkly client init out of entry setup so it can be re-used between entries * Test the twinkly component initialization * React to PR review and add few more tests
23 lines
595 B
Python
23 lines
595 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"
|
|
|
|
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
|
|
)
|