mirror of
https://github.com/home-assistant/core.git
synced 2026-08-21 22:01:05 +01:00
* Switchbot add support for hygrometers
* Update CODEOWNERS
* Improve debug
* Remove redundant mention to temp unit
* Adopt FlowResultType
* Modify SwitchBot data within coordinator
* Increase logging for switchbot sensor
* Revert "Increase logging for switchbot sensor"
This reverts commit d8b377429c.
Co-authored-by: J. Nick Koston <nick@koston.org>
31 lines
716 B
Python
31 lines
716 B
Python
"""Constants for the switchbot integration."""
|
|
DOMAIN = "switchbot"
|
|
MANUFACTURER = "switchbot"
|
|
|
|
# Config Attributes
|
|
ATTR_BOT = "bot"
|
|
ATTR_CURTAIN = "curtain"
|
|
ATTR_HYGROMETER = "hygrometer"
|
|
DEFAULT_NAME = "Switchbot"
|
|
SUPPORTED_MODEL_TYPES = {
|
|
"WoHand": ATTR_BOT,
|
|
"WoCurtain": ATTR_CURTAIN,
|
|
"WoSensorTH": ATTR_HYGROMETER,
|
|
}
|
|
|
|
# Config Defaults
|
|
DEFAULT_RETRY_COUNT = 3
|
|
DEFAULT_RETRY_TIMEOUT = 5
|
|
DEFAULT_TIME_BETWEEN_UPDATE_COMMAND = 60
|
|
DEFAULT_SCAN_TIMEOUT = 5
|
|
|
|
# Config Options
|
|
CONF_TIME_BETWEEN_UPDATE_COMMAND = "update_time"
|
|
CONF_RETRY_COUNT = "retry_count"
|
|
CONF_RETRY_TIMEOUT = "retry_timeout"
|
|
CONF_SCAN_TIMEOUT = "scan_timeout"
|
|
|
|
# Data
|
|
DATA_COORDINATOR = "coordinator"
|
|
COMMON_OPTIONS = "common_options"
|