Use platform enum (6) [S] (#60944)
This commit is contained in:
parent
ffb4b4df96
commit
f7193400d4
36 changed files with 146 additions and 81 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue