* Implement Elmax cover platform. * Reduce the number of code lines by leveraging the := operator * Move _COMMAND_BY_MOTION_STATUS declaration at the top * Remove redundant null-check * Move conditional platform setup logic into the platform itself * Remove redundant log * Change log severity for stop request on IDLE cover state --------- Co-authored-by: G Johansson <goran.johansson@shiftit.se>
22 lines
525 B
Python
22 lines
525 B
Python
"""Constants for the elmax-cloud integration."""
|
|
from homeassistant.const import Platform
|
|
|
|
DOMAIN = "elmax"
|
|
CONF_ELMAX_USERNAME = "username"
|
|
CONF_ELMAX_PASSWORD = "password"
|
|
CONF_ELMAX_PANEL_ID = "panel_id"
|
|
CONF_ELMAX_PANEL_PIN = "panel_pin"
|
|
CONF_ELMAX_PANEL_NAME = "panel_name"
|
|
|
|
CONF_CONFIG_ENTRY_ID = "config_entry_id"
|
|
CONF_ENDPOINT_ID = "endpoint_id"
|
|
|
|
ELMAX_PLATFORMS = [
|
|
Platform.SWITCH,
|
|
Platform.BINARY_SENSOR,
|
|
Platform.ALARM_CONTROL_PANEL,
|
|
Platform.COVER,
|
|
]
|
|
|
|
POLLING_SECONDS = 30
|
|
DEFAULT_TIMEOUT = 10.0
|