* Add SwitchBee Integration * fixes * improved API and more logs * fixed test_config_flow code * removed light and cover * Fixed CR comments, updated pylib, improved response time and lowered the scan interval for lower latency * CR fixes, added advanced setup form to let the user choose the following: - scan interval in seconds: default 5 - whether to expose scenarios and group switches from the CU or not * used SCAN_INTERVAL_SEC instead of typing just the number * Fixed PR comments, added unit tests * fixes * Improved the pypi and updated the code accordingly * Add SwitchBee Integration * fixes * improved API and more logs * fixed test_config_flow code * removed light and cover * Fixed CR comments, updated pylib, improved response time and lowered the scan interval for lower latency * CR fixes, added advanced setup form to let the user choose the following: - scan interval in seconds: default 5 - whether to expose scenarios and group switches from the CU or not * used SCAN_INTERVAL_SEC instead of typing just the number * Fixed PR comments, added unit tests * fixes * Improved the pypi and updated the code accordingly * fixes * restored new line in .coveragerc * test: increased config_flow test coverage * removed two way type * Updated CODEOWNERS * fix: code review comments * fixed review comments * added device_info * moved device info to attribute
14 lines
384 B
Python
14 lines
384 B
Python
"""Constants for the SwitchBee Smart Home integration."""
|
|
|
|
from switchbee.device import DeviceType
|
|
|
|
DOMAIN = "switchbee"
|
|
SCAN_INTERVAL_SEC = 5
|
|
CONF_SCAN_INTERVAL = "scan_interval"
|
|
CONF_SWITCHES_AS_LIGHTS = "switch_as_light"
|
|
CONF_DEVICES = "devices"
|
|
CONF_DEFUALT_ALLOWED = [
|
|
DeviceType.Switch.display,
|
|
DeviceType.TimedPowerSwitch.display,
|
|
DeviceType.TimedSwitch.display,
|
|
]
|