Use platform enum (6) [S] (#60944)

This commit is contained in:
Marc Mueller 2021-12-04 13:43:48 +01:00 committed by GitHub
parent ffb4b4df96
commit f7193400d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 146 additions and 81 deletions

View file

@ -1,10 +1,18 @@
"""StarLine constants."""
import logging
from homeassistant.const import Platform
_LOGGER = logging.getLogger(__package__)
DOMAIN = "starline"
PLATFORMS = ["device_tracker", "binary_sensor", "sensor", "lock", "switch"]
PLATFORMS = [
Platform.DEVICE_TRACKER,
Platform.BINARY_SENSOR,
Platform.SENSOR,
Platform.LOCK,
Platform.SWITCH,
]
CONF_APP_ID = "app_id"
CONF_APP_SECRET = "app_secret"