* refactoring for multi platform * adopted test_bridge to refactoring * refactoring tests for multi-platform additional coverage in config and init * comment for clarity * more specific imports from lib * library version bump * removed async_update * changed parameter order to start with hass * removed pylint disable * unsubscribe from signal dispatcher inherit from Entity * use device.unique_id * changed hass_obj to hass * added test for remove entity bug fix from the test * removed the polling try_connect. hate polling... it is now part of the async_setup() significantly makes the code clearer and simplifies the tests * removed leftover debug logs in the library * changed tests to get the entry_id from hass * changed place to assign hass.data only after success * fixes for test_init * removed assert * removed device_info * removed bridge internal from common * modified test_bridge to work without the bridge directly * removed bridge from test_existing_update * changed update to not use bridge internals * dyn_bridge fixture no longer used - removed
25 lines
475 B
Python
Executable File
25 lines
475 B
Python
Executable File
"""Constants for the Dynalite component."""
|
|
import logging
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
DOMAIN = "dynalite"
|
|
|
|
ENTITY_PLATFORMS = ["light"]
|
|
|
|
CONF_ACTIVE = "active"
|
|
CONF_ALL = "ALL"
|
|
CONF_AREA = "area"
|
|
CONF_AUTO_DISCOVER = "autodiscover"
|
|
CONF_BRIDGES = "bridges"
|
|
CONF_CHANNEL = "channel"
|
|
CONF_DEFAULT = "default"
|
|
CONF_FADE = "fade"
|
|
CONF_HOST = "host"
|
|
CONF_NAME = "name"
|
|
CONF_POLLTIMER = "polltimer"
|
|
CONF_PORT = "port"
|
|
|
|
|
|
DEFAULT_NAME = "dynalite"
|
|
DEFAULT_PORT = 12345
|