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

@ -2,6 +2,8 @@
from datetime import timedelta
import re
from homeassistant.const import Platform
DOMAIN = "smartthings"
APP_OAUTH_CLIENT_NAME = "Home Assistant"
@ -32,15 +34,15 @@ STORAGE_VERSION = 1
# Ordered 'specific to least-specific platform' in order for capabilities
# to be drawn-down and represented by the most appropriate platform.
PLATFORMS = [
"climate",
"fan",
"light",
"lock",
"cover",
"switch",
"binary_sensor",
"sensor",
"scene",
Platform.CLIMATE,
Platform.FAN,
Platform.LIGHT,
Platform.LOCK,
Platform.COVER,
Platform.SWITCH,
Platform.BINARY_SENSOR,
Platform.SENSOR,
Platform.SCENE,
]
IGNORED_CAPABILITIES = [