StarLine integration (#27197)
* Device Tracker works * Device Tracker works * Binary Sensor * Sensor * Lock * Switch and service * New switches * Update interval options * WIP * Translation errors * Check online state * WIP * Move to aiohttp * Some checks * CI * CI * .coveragerc * Black * icon_for_signal_level test * update_interval renamed to scan_interval * async logic * Fix cookie read * Requirement starline * Reformat * Requirements updated * ConfigEntryNotReady * Requirement starline * Lint fix * Requirement starline * available status * Translations * Expiration to config * CI * Linter fix * Small renaming * Update slnet token * Starline version bump * Fix updates * Black * Small fix * Removed unused fields * CI * set_scan_interval service * deps updated * Horn switch * Starline lib updated * Starline lib updated * Black * Support multiple integrations * Review * async_will_remove_from_hass * Deps updated * Test config flow * Requirements * CI * Review * Review * Review * Review * Review * CI * pylint fix * Review * Support "mayak" devices * Icons removed * Removed options_flow * Removed options_flow test * Removed options_flow test
This commit is contained in:
parent
c21650473a
commit
a37260faa9
23 changed files with 1179 additions and 0 deletions
27
homeassistant/components/starline/const.py
Normal file
27
homeassistant/components/starline/const.py
Normal file
|
@ -0,0 +1,27 @@
|
|||
"""StarLine constants."""
|
||||
import logging
|
||||
|
||||
LOGGER = logging.getLogger(__package__)
|
||||
|
||||
DOMAIN = "starline"
|
||||
PLATFORMS = ["device_tracker", "binary_sensor", "sensor", "lock", "switch"]
|
||||
|
||||
CONF_APP_ID = "app_id"
|
||||
CONF_APP_SECRET = "app_secret"
|
||||
CONF_MFA_CODE = "mfa_code"
|
||||
CONF_CAPTCHA_CODE = "captcha_code"
|
||||
|
||||
CONF_SCAN_INTERVAL = "scan_interval"
|
||||
DEFAULT_SCAN_INTERVAL = 180 # in seconds
|
||||
|
||||
ERROR_AUTH_APP = "error_auth_app"
|
||||
ERROR_AUTH_USER = "error_auth_user"
|
||||
ERROR_AUTH_MFA = "error_auth_mfa"
|
||||
|
||||
DATA_USER_ID = "user_id"
|
||||
DATA_SLNET_TOKEN = "slnet_token"
|
||||
DATA_SLID_TOKEN = "slid_token"
|
||||
DATA_EXPIRES = "expires"
|
||||
|
||||
SERVICE_UPDATE_STATE = "update_state"
|
||||
SERVICE_SET_SCAN_INTERVAL = "set_scan_interval"
|
Loading…
Add table
Add a link
Reference in a new issue