* Add elmax integration. * Run hassfest and generate requirements_all * Remove secondary platforms from elmax integration as per first component integration. * Move ElmaxCoordinator and ElmaxEntity into external file Linting review * Remove useless variables * Fix wrong indentation. * Remove unecessary platforms. * Remove unnecessary attributes from manifest. * Rely on property getters/setters rathern than private attribute from parent. Update internal entity state just after transitory state update. * Update homeassistant/components/elmax/const.py Reference Platform constant Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de> * Update username/password values Rely on already-present templating constants Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de> * Add missing constant import. * Remove unnecessary test_unhandled_error() callback implementation. * Add common.py to coverage ignore list. * Improve coverage of config_flow. * Rename the integration. Co-authored-by: Franck Nijhof <frenck@frenck.nl> * Fix reauth bug and improve testing. * Refactor lambdas into generators. Co-authored-by: Marvin Wichmann <marvin@fam-wichmann.de> Co-authored-by: Franck Nijhof <frenck@frenck.nl>
17 lines
436 B
Python
17 lines
436 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]
|
|
|
|
POLLING_SECONDS = 30
|
|
DEFAULT_TIMEOUT = 10.0
|